]> git.e2factory.org Git - e2factory.git/commitdiff
bugfix: fix error handling in env: collect all errors of one class before returning...
authorGordon Hecker <gh@emlix.com>
Wed, 27 Jan 2010 13:04:32 +0000 (14:04 +0100)
committerGordon Hecker <gh@emlix.com>
Fri, 12 Feb 2010 13:54:47 +0000 (14:54 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index 4789c0ad65e114fc622f335894506ecf3dfbb3b1..306cf2997cd56cb71e22099353f0c35185cbfa7c 100644 (file)
@@ -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",