]> git.e2factory.org Git - e2factory.git/commitdiff
generic_git: fix error handling
authorTobias Ulmer <tu@emlix.com>
Mon, 22 May 2017 17:00:05 +0000 (19:00 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 25 Apr 2018 16:19:09 +0000 (18:19 +0200)
found by Anton Hillebrand <ahille@emlix.com>

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/generic_git.lua

index 6a5b2b2cd002c1d67bc118dc2a51d0593706c2bc..8d87a9b5efcba4deac04a44901a01549451148a6 100644 (file)
@@ -149,7 +149,7 @@ function generic_git.git(argv)
 
     rc, re = e2lib.callcmd_capture(git, capture)
     if not rc then
-        e = new.new("git command %q failed", table.concat(git, " "))
+        e = err.new("git command %q failed", table.concat(git, " "))
         return false, e:cat(re), table.concat(out)
     elseif rc ~= 0 then
         e = err.new("git command %q failed with exit status %d",