summaryrefslogtreecommitdiffstats
path: root/bitbake
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
parentc63278bf34072c8236d58d7db3b145bf43f556b5 (diff)
downloadpoky-88a257634a7a681d711e4401a7109d8742e9a166.tar.gz
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')
-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 a73e0c4a6a..93fff5d27b 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -981,10 +981,11 @@ class RunQueue:
981 try: 981 try:
982 self.cooker.tryBuild(fn, taskname[3:]) 982 self.cooker.tryBuild(fn, taskname[3:])
983 except bb.build.EventException: 983 except bb.build.EventException:
984 bb.msg.error(bb.msg.domain.Build, "Build of " + fn + " " + taskname + " failed")
985 os._exit(1) 984 os._exit(1)
986 except: 985 except Exception:
987 bb.msg.error(bb.msg.domain.Build, "Build of " + fn + " " + taskname + " failed") 986 from traceback import format_exc
987 bb.msg.error(bb.msg.domain.Build, "Build of %s %s failed" % (fn, taskname))
988 bb.msg.error(bb.msg.domain.Build, format_exc())
988 os._exit(1) 989 os._exit(1)
989 os._exit(0) 990 os._exit(0)
990 991