* [PATCH] main: Ensure exceptions are correctly displayed
@ 2016-05-12 9:57 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-05-12 9:57 UTC (permalink / raw)
To: bitbake-devel
If the cooker fails to start, ensure a correct exception is displayed to the
user. After handling any queued events simply re-raise the original exception
else the output can be unclear.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/lib/bb/main.py b/lib/bb/main.py
index a287905..b296ef8 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -336,7 +336,6 @@ def start_server(servermodule, configParams, configuration, features):
server.addcooker(cooker)
server.saveConnectionDetails()
except Exception as e:
- exc_info = sys.exc_info()
while hasattr(server, "event_queue"):
import queue
try:
@@ -345,7 +344,7 @@ def start_server(servermodule, configParams, configuration, features):
break
if isinstance(event, logging.LogRecord):
logger.handle(event)
- raise exc_info[1], None, exc_info[2]
+ raise
server.detach()
cooker.lock.close()
return server
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-12 9:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 9:57 [PATCH] main: Ensure exceptions are correctly displayed Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.