From 8970430e55efabb225207ce8cceaee85125300e9 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 27 May 2009 16:13:46 +0200 Subject: [PATCH] bugfix in e2-fetch-project: pass failure in e2-install-e2 to the user Signed-off-by: Gordon Hecker --- global/e2-fetch-project.lua.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/global/e2-fetch-project.lua.in b/global/e2-fetch-project.lua.in index 4f24f1c..d108888 100755 --- a/global/e2-fetch-project.lua.in +++ b/global/e2-fetch-project.lua.in @@ -174,18 +174,17 @@ end -- write project location file local file = ".e2/project-location" local data = string.format("%s\n", p.location) -local rc, e = e2lib.write_file(file, data) +local rc, re = e2lib.write_file(file, data) if not rc then - e2lib.abort(e) + e2lib.abort(e:cat(re)) end -- call e2-install-e2 e2_install_e2 = string.format("'%s' '%s/e2-install-e2'", buildconfig.LUA, buildconfig.TOOLDIR) rc, re = e2lib.callcmd_log(e2_install_e2) -if not rc then - e:append("installing local e2 failed") - e2lib.abort(e:cat(re)) +if rc ~= 0 then + e2lib.abort(new_error("installing local e2 failed")) end e2lib.finish() -- 2.39.5