From d636d1b1ef838c0c81f0167b649816d7fb4015e0 Mon Sep 17 00:00:00 2001 From: Robert Bradford Date: Fri, 17 Oct 2008 09:47:08 +0000 Subject: 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 --- bitbake-dev/bin/bitbake | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'bitbake-dev') diff --git a/bitbake-dev/bin/bitbake b/bitbake-dev/bin/bitbake index ea4147e97..1f650e2bd 100755 --- a/bitbake-dev/bin/bitbake +++ b/bitbake-dev/bin/bitbake @@ -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 -- cgit v1.2.3