summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-05 13:32:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-06 06:34:58 +0100
commit0e3c7594cb636aae89d47a66ffc003f06a20fa95 (patch)
tree542920d7c94dfaa3bc7bfb8261b162b0ae626849
parent5a4501abeb1005c2cacc84cdd6d2b4f3fcbe188f (diff)
downloadpoky-0e3c7594cb636aae89d47a66ffc003f06a20fa95.tar.gz
bitbake: ui/taskexp: Improve startup exception handling
When an exception occurs at startup, show it to the user. [YOCTO #14408] (Bitbake rev: cc1df1af67cfd3e223b39e2b7ea5f86b8cf78aee) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/taskexp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/taskexp.py b/bitbake/lib/bb/ui/taskexp.py
index 2b246710ca..81392977a0 100644
--- a/bitbake/lib/bb/ui/taskexp.py
+++ b/bitbake/lib/bb/ui/taskexp.py
@@ -8,6 +8,7 @@
8# 8#
9 9
10import sys 10import sys
11import traceback
11 12
12try: 13try:
13 import gi 14 import gi
@@ -218,6 +219,9 @@ def main(server, eventHandler, params):
218 except client.Fault as x: 219 except client.Fault as x:
219 print("XMLRPC Fault getting commandline:\n %s" % x) 220 print("XMLRPC Fault getting commandline:\n %s" % x)
220 return 221 return
222 except Exception as e:
223 print("Exception in startup:\n %s" % traceback.format_exc())
224 return
221 225
222 if gtkthread.quit.isSet(): 226 if gtkthread.quit.isSet():
223 return 227 return