diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-06-04 15:47:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-06 10:32:54 +0100 |
commit | e89db137f008d7ead4e8ba81e704388eae69d7e4 (patch) | |
tree | 12e5df1984b98bfab52b32dc638026663bc0a3e0 /bitbake/lib/bb/ui | |
parent | a5d01e9ec7176ad16e106b100861b488bc22081f (diff) | |
download | ast2050-yocto-poky-e89db137f008d7ead4e8ba81e704388eae69d7e4.zip ast2050-yocto-poky-e89db137f008d7ead4e8ba81e704388eae69d7e4.tar.gz |
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 <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index 98658f6..eb760c0 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 |