summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-18 11:03:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-18 12:18:19 +0000
commit522dcaa0cb6e099665a29ea1c585270563d33e94 (patch)
treeb6fe7eb5a61a0455b46a99cc1dfc860be6cb29d4
parent01d67bfa77e68a5af97dc7dc2507c341cf4f83e4 (diff)
downloadpoky-522dcaa0cb6e099665a29ea1c585270563d33e94.tar.gz
bitbake: knotty: Improve exception error message
Instead of: """ can only concatenate tuple (not "int") to tuple """ we now see: """ Traceback (most recent call last): File "/media/build1/poky/bitbake/lib/bb/ui/knotty.py", line 324, in main termfilter.updateFooter() File "/media/build1/poky/bitbake/lib/bb/ui/knotty.py", line 210, in updateFooter lines = 1 + int(len(content) / (self.columns + 1)) TypeError: can only concatenate tuple (not "int") to tuple """ which makes tacking down and fixing the problem much easier. Also ensure we set an error exit code. (Bitbake rev: d965bcae6cfd268406a3bd1ef77c5bb6c6e1c6d7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/knotty.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 042b79e4b0..053d1e978b 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -533,10 +533,12 @@ def main(server, eventHandler, params, tf = TerminalFilter):
533 main.shutdown = main.shutdown + 1 533 main.shutdown = main.shutdown + 1
534 pass 534 pass
535 except Exception as e: 535 except Exception as e:
536 sys.stderr.write(str(e)) 536 import traceback
537 sys.stderr.write(traceback.format_exc())
537 if not params.observe_only: 538 if not params.observe_only:
538 _, error = server.runCommand(["stateForceShutdown"]) 539 _, error = server.runCommand(["stateForceShutdown"])
539 main.shutdown = 2 540 main.shutdown = 2
541 return_value = 1
540 try: 542 try:
541 summary = "" 543 summary = ""
542 if taskfailures: 544 if taskfailures: