From e89db137f008d7ead4e8ba81e704388eae69d7e4 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 4 Jun 2014 15:47:02 +0100 Subject: bitbake: xmlrpc: client - remove fatal errors When we use the XMLRPC client API to connect to a bitbake server, we want to receive errors from the API instead of having the API exiting without warning. Thus the "bb.fatal" calls have been replaced with "bb.warn" calls, and we re-raise the original exception for handling by the original caller. The bitbake starting script has been modified to properly test for failures in calling the client API and handle them. Additional error handling added in the client, as to prevent fatal crashes. (Bitbake rev: eb63f08c33644f64752aaae2146a000956ce894a) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/uievent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/uievent.py') diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index 98658f68bf..eb760c00c3 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py @@ -47,7 +47,8 @@ class BBUIEventQueue: self.EventHandle = self.BBServer.registerEventHandler(self.host, self.port) if (self.EventHandle == None): - bb.fatal("Could not register UI event handler") + bb.warn("Could not register UI event handler %s:%d" % (self.host, self.port)) + raise Exception("Could not register UI event handler") self.server = server -- cgit v1.2.3-54-g00ecf