[oe-commits] [bitbake] 14/18: fetcher2/__init__: Print command in case of ExecutionError in runfetchcmd

git at git.openembedded.org git at git.openembedded.org
Mon Jul 25 08:59:19 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit df7f4897c463a48c45514e2bcbd44cc7f86c4bb0
Author: Mario Domenech Goulart <mario.goulart at bmw-carit.de>
AuthorDate: Thu Jul 21 16:08:01 2016 +0200

    fetcher2/__init__: Print command in case of ExecutionError in runfetchcmd
    
    Signed-off-by: Mario Domenech Goulart <mario.goulart at bmw-carit.de>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index e2ceca0..3eabba1 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -832,7 +832,7 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None):
             output = "output:\n%s" % e.stderr
         else:
             output = "no output"
-        error_message = "Fetch command failed with exit code %s, %s" % (e.exitcode, output)
+        error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output)
     except bb.process.CmdError as e:
         error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg)
     if not success:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list