[yocto] [auh][PATCH 12/20] utils/git.py: print current dir when git fails
Alexander Kanavin
alexander.kanavin at linux.intel.com
Thu Dec 14 08:35:52 PST 2017
From: Alexander Kanavin <alex.kanavin at gmail.com>
Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
---
modules/utils/git.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/utils/git.py b/modules/utils/git.py
index d1fe41b..a6f5422 100644
--- a/modules/utils/git.py
+++ b/modules/utils/git.py
@@ -40,7 +40,7 @@ class Git(object):
try:
stdout, stderr = bb.process.run(cmd)
except bb.process.ExecutionError as e:
- D("%s returned:\n%s" % (cmd, e.__str__()))
+ D("%s executed from %s returned:\n%s" % (cmd, self.repo_dir, e.__str__()))
raise Error("The following git command failed: " + operation,
e.stdout, e.stderr)
--
2.15.0
More information about the yocto
mailing list