From: Tobias Ulmer Date: Mon, 22 May 2017 17:00:05 +0000 (+0200) Subject: generic_git: fix error handling X-Git-Tag: e2factory-2.3.17p0~5 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=b6d004973cdeab7c6543ff725c108f76b9b6f577;p=e2factory.git generic_git: fix error handling found by Anton Hillebrand Signed-off-by: Tobias Ulmer --- diff --git a/generic/generic_git.lua b/generic/generic_git.lua index 6a5b2b2..8d87a9b 100644 --- a/generic/generic_git.lua +++ b/generic/generic_git.lua @@ -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",