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:
parent
bd63867cbe
commit
d636d1b1ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue