From 0e3c7594cb636aae89d47a66ffc003f06a20fa95 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 5 Aug 2021 13:32:34 +0100 Subject: 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 --- bitbake/lib/bb/ui/taskexp.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb/ui') 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 @@ # import sys +import traceback try: import gi @@ -218,6 +219,9 @@ def main(server, eventHandler, params): except client.Fault as x: print("XMLRPC Fault getting commandline:\n %s" % x) return + except Exception as e: + print("Exception in startup:\n %s" % traceback.format_exc()) + return if gtkthread.quit.isSet(): return -- cgit v1.2.3-54-g00ecf