]> git.e2factory.org Git - e2factory.git/commitdiff
fix error messages about logfiles.
authorGordon Hecker <gh@emlix.com>
Wed, 18 Mar 2009 22:30:48 +0000 (23:30 +0100)
committerGordon Hecker <gh@emlix.com>
Wed, 18 Mar 2009 22:31:09 +0000 (23:31 +0100)
Patch by Matthias Kaehlcke

Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/e2lib.lua

index f11e1f16407562abacdd2c567fb9153f40176022..e99a0407b3758f3c5c5ec3f994fe780f2951c239 100644 (file)
@@ -457,7 +457,7 @@ function e2lib.log_invocation(info, args)
   e2lib.mkdir(ulogdir, "-p")
   local rc, e = append_to_file(ulogfile, logstring)
   if not rc then
-    e2lib.abort(string.format("can't log to file %s: %s", logfile, e))
+    e2lib.abort(string.format("can't log to file %s: %s", ulogfile, e))
   end
 
   -- log to the project logfile
@@ -467,7 +467,7 @@ function e2lib.log_invocation(info, args)
     e2lib.mkdir(plogdir, "-p")
     rc, e = append_to_file(plogfile, logstring)
     if not rc then
-      e2lib.abort(string.format("can't log to file %s: %s", logfile, e))
+      e2lib.abort(string.format("can't log to file %s: %s", plogfile, e))
     end
   end