mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
bitbake: ui/taskexp: Improve startup exception handling
When an exception occurs at startup, show it to the user. [YOCTO #14408] (Bitbake rev: 2dc35a3ef95da594db2051369e98e8f678848849) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cc1df1af67cfd3e223b39e2b7ea5f86b8cf78aee) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user