From: Gordon Hecker Date: Thu, 3 Sep 2009 07:24:53 +0000 (+0200) Subject: correct error message when trying to fetch a non-existent source X-Git-Tag: e2factory-2.3.2rc1~62 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=34e65479bed0fd2dbdb95556191598c21d5b7aa9;p=e2factory.git correct error message when trying to fetch a non-existent source Signed-off-by: Gordon Hecker --- diff --git a/local/fetch-sources.lua b/local/fetch-sources.lua index c10560f..7467ed2 100755 --- a/local/fetch-sources.lua +++ b/local/fetch-sources.lua @@ -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