]> git.e2factory.org Git - e2factory.git/commitdiff
fix broken error handling in transport.push_file()
authorTobias Ulmer <tu@emlix.com>
Thu, 15 Nov 2012 13:42:20 +0000 (14:42 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:11 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/transport.lua

index 6dc90f74c01edd3db27ab80d7e90ec55d8f56849..bd238d6616780481de1f404f3d80a53ccfeb4340 100644 (file)
@@ -242,7 +242,7 @@ function transport.push_file(sourcefile, durl, location, push_permissions, try_h
     durl = string.format("%s/%s", durl, location)
     local u, re = url.parse(durl)
     if not u then
-        return e:cat(re)
+        return false, e:cat(re)
     end
     if u.transport == "file" then
         local destdir = string.format("/%s", e2lib.dirname(u.path))