From 34e65479bed0fd2dbdb95556191598c21d5b7aa9 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Thu, 3 Sep 2009 09:24:53 +0200 Subject: [PATCH] correct error message when trying to fetch a non-existent source Signed-off-by: Gordon Hecker --- local/fetch-sources.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5