summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-09 19:26:21 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:36 +0100
commit88a257634a7a681d711e4401a7109d8742e9a166 (patch)
treeaa6824012020c1604bdd67b60db65961696f56b7 /bitbake/lib
parentc63278bf34072c8236d58d7db3b145bf43f556b5 (diff)
downloadopenembedded-core-88a257634a7a681d711e4401a7109d8742e9a166.tar.gz
openembedded-core-88a257634a7a681d711e4401a7109d8742e9a166.tar.bz2
openembedded-core-88a257634a7a681d711e4401a7109d8742e9a166.tar.xz
openembedded-core-88a257634a7a681d711e4401a7109d8742e9a166.zip
Show a traceback when a task fails due to an exception
(Bitbake rev: 5bb24832761bd518cb0249125f67939e0cbd0998) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index a73e0c4a6..93fff5d27 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -981,10 +981,11 @@ class RunQueue:
try:
self.cooker.tryBuild(fn, taskname[3:])
except bb.build.EventException:
- bb.msg.error(bb.msg.domain.Build, "Build of " + fn + " " + taskname + " failed")
os._exit(1)
- except:
- bb.msg.error(bb.msg.domain.Build, "Build of " + fn + " " + taskname + " failed")
+ except Exception:
+ from traceback import format_exc
+ bb.msg.error(bb.msg.domain.Build, "Build of %s %s failed" % (fn, taskname))
+ bb.msg.error(bb.msg.domain.Build, format_exc())
os._exit(1)
os._exit(0)