diff options
author | Robert Bradford <rob@openedhand.com> | 2008-10-17 09:47:08 +0000 |
---|---|---|
committer | Robert Bradford <rob@openedhand.com> | 2008-10-17 09:47:08 +0000 |
commit | d636d1b1ef838c0c81f0167b649816d7fb4015e0 (patch) | |
tree | dc3303f6054e626e8cc75e588ab41444368d4bce /bitbake-dev/bin/bitbake | |
parent | bd63867cbe48eab91523731def4cec80187b5c0f (diff) | |
download | openembedded-core-d636d1b1ef838c0c81f0167b649816d7fb4015e0.tar.gz openembedded-core-d636d1b1ef838c0c81f0167b649816d7fb4015e0.tar.bz2 openembedded-core-d636d1b1ef838c0c81f0167b649816d7fb4015e0.zip |
bitbake-dev: Don't fallback if the UI fails to start; give an error message on UI exception
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake-dev/bin/bitbake')
-rwxr-xr-x | bitbake-dev/bin/bitbake | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake-dev/bin/bitbake b/bitbake-dev/bin/bitbake index ea4147e971..1f650e2bdc 100755 --- a/bitbake-dev/bin/bitbake +++ b/bitbake-dev/bin/bitbake @@ -168,12 +168,6 @@ Default BBFILES are the .bb files in the current directory.""" ) # Launch the UI try: if curseUI: - try: - import curses - except ImportError, details: - curseUI = False - - if curseUI: from bb.ui import ncurses ncurses.init(server, eventHandler) elif depexplorerUI: @@ -182,7 +176,8 @@ Default BBFILES are the .bb files in the current directory.""" ) else: from bb.ui import knotty return_value = knotty.init(server, eventHandler) - + except Exception, e: + print "FATAL: Unable to start to '%s' UI: %s" % (configuration.ui, e.message) finally: # Don't wait for server indefinitely import socket |