]> git.e2factory.org Git - e2factory.git/commitdiff
correct error message when trying to fetch a non-existent source
authorGordon Hecker <gh@emlix.com>
Thu, 3 Sep 2009 07:24:53 +0000 (09:24 +0200)
committerGordon Hecker <gh@emlix.com>
Fri, 2 Oct 2009 10:40:07 +0000 (12:40 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/fetch-sources.lua

index c10560f7d667e5341aabbc01a2ffddc20238f43f..7467ed2ec13e7c788c0303ed49741e3dfe7602d3 100755 (executable)
@@ -196,8 +196,10 @@ if #opts.arguments > 0 then
       for _, s in ipairs(res.sources) do
        sel[s] = s
       end
+    elseif opts.result then
+      e2lib.abort("is not a result: " .. x)
     else
-      e2lib.abort("is neither known source nor result: " .. x)
+      e2lib.abort("is not a source: " .. x)
     end
   end
 elseif opts["all"] then