]> git.e2factory.org Git - e2factory.git/commitdiff
Improve update source error message by including the source name
authorTobias Ulmer <tu@emlix.com>
Mon, 14 Jan 2013 15:02:48 +0000 (16:02 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:13 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/cvs.lua
local/git.lua
local/svn.lua

index 7d1fe61464d43cbc944ea3fd69a734ecb5ceecf2..c627656e97dc110743f9efea885255c69cef1f96 100644 (file)
@@ -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")
index ac04fa9b983916b894c871c7429408f97b0b6c05..51a837c8a6a4dffd74a1d4eb45dd1bcb3f16f7a7 100644 (file)
@@ -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)
index d207108df7848c71cb45f352c18a6226cd41b944..1caf537dc32d73517a70b43a395315c79d1d84ec 100644 (file)
@@ -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)