mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix error reporting when there is a problem starting a UI
This commit is contained in:
parent
be5cfd06e4
commit
0a51fc0c15
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
import deluge.configmanager
|
import deluge.configmanager
|
||||||
|
|
||||||
|
@ -61,7 +62,8 @@ class UI:
|
||||||
log.info("Starting ConsoleUI..")
|
log.info("Starting ConsoleUI..")
|
||||||
from deluge.ui.console.main import ConsoleUI
|
from deluge.ui.console.main import ConsoleUI
|
||||||
ui = ConsoleUI(ui_args).run()
|
ui = ConsoleUI(ui_args).run()
|
||||||
except ImportError:
|
except ImportError, e:
|
||||||
|
log.exception(e)
|
||||||
log.error("Unable to find the requested UI: %s. Please select a different UI with the '-u' option or alternatively use the '-s' option to select a different default UI.", selected_ui)
|
log.error("Unable to find the requested UI: %s. Please select a different UI with the '-u' option or alternatively use the '-s' option to select a different default UI.", selected_ui)
|
||||||
import sys
|
import sys
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue