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
This commit is contained in:
Robert Bradford 2008-10-17 09:47:08 +00:00
parent bd63867cbe
commit d636d1b1ef
1 changed files with 2 additions and 7 deletions

View File

@ -167,12 +167,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)
@ -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