From: Tobias Ulmer Date: Mon, 14 Jan 2013 15:02:48 +0000 (+0100) Subject: Improve update source error message by including the source name X-Git-Tag: e2factory-2.3.13rc1~58 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=06267a4a2e6e325d7df02747116c41fba5721720;p=e2factory.git Improve update source error message by including the source name Signed-off-by: Tobias Ulmer --- diff --git a/local/cvs.lua b/local/cvs.lua index 7d1fe61..c627656 100644 --- a/local/cvs.lua +++ b/local/cvs.lua @@ -247,7 +247,7 @@ function cvs.update(info, sourcename) if not rc then e2lib.abort(re) end - local e = err.new("updating cvs source failed") + local e = err.new("updating source '%s' failed", sourcename) local src = info.sources[ sourcename ] local working = string.format("%s/%s", info.root, src.working) local rsh = tools.get_tool("ssh") diff --git a/local/git.lua b/local/git.lua index ac04fa9..51a837c 100644 --- a/local/git.lua +++ b/local/git.lua @@ -188,7 +188,7 @@ end function git.update(info, sourcename) local src = info.sources[ sourcename ] local rc, re - local e = err.new("updating source failed") + local e = err.new("updating source '%s' failed", sourcename) rc, re = scm.working_copy_available(info, sourcename) if not rc then return false, e:cat(re) diff --git a/local/svn.lua b/local/svn.lua index d207108..1caf537 100644 --- a/local/svn.lua +++ b/local/svn.lua @@ -313,7 +313,7 @@ function svn.update(info, sourcename) if not rc then e2lib.abort(re) end - local e = err.new("updating svn source failed") + local e = err.new("updating source '%s' failed", sourcename) local src = info.sources[ sourcename ] local working = string.format("%s/%s", info.root, src.working) rc, re = e2lib.chdir(working)