From 4a28b5b93797de68c730de8eca79e7010cff06ee Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 27 Jan 2010 14:04:32 +0100 Subject: [PATCH] bugfix: fix error handling in env: collect all errors of one class before returning to save multiple iterations Signed-off-by: Gordon Hecker --- local/e2tool.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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", -- 2.39.5