From: Gordon Hecker Date: Wed, 27 Jan 2010 13:04:32 +0000 (+0100) Subject: bugfix: fix error handling in env: collect all errors of one class before returning... X-Git-Tag: e2factory-2.3.4pre1~4 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=4a28b5b93797de68c730de8eca79e7010cff06ee;p=e2factory.git bugfix: fix error handling in env: collect all errors of one class before returning to save multiple iterations Signed-off-by: Gordon Hecker --- diff --git a/local/e2tool.lua b/local/e2tool.lua index 4789c0a..306cf29 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -623,10 +623,12 @@ The newest configuration syntax supported by the tools is %s. -- check for environment for non-existent results for r, t in pairs(info.result_env) do if not info.results[r] then - return false, e:append( - "configured environment for non existent result: %s", r) + e:append("configured environment for non existent result: %s", r) end end + if e:getcount() > 1 then + return false, e + end -- read .e2/proj-location info.project_location_config = string.format("%s/.e2/project-location",