show traceback on Python errors too...
This commit is contained in:
@@ -38,16 +38,20 @@ def handle_exception(exception, value, tb):
|
|||||||
ui.error(_("Fatal Error:"))
|
ui.error(_("Fatal Error:"))
|
||||||
traceback = ctx.options and ctx.options.debug
|
traceback = ctx.options and ctx.options.debug
|
||||||
elif exception == pisi.Exception:
|
elif exception == pisi.Exception:
|
||||||
ui.error(_("""
|
traceback = True
|
||||||
Internal PISI Error:
|
else:
|
||||||
Please file a bug report! (http://bugs.uludag.org.tr)
|
# For any other exception (possibly Python exceptions) show
|
||||||
"""))
|
# the traceback!
|
||||||
traceback = True
|
traceback = True
|
||||||
|
|
||||||
ui.error("%s" %exception)
|
ui.error("%s" %exception)
|
||||||
ui.error("%s\n" %value)
|
ui.error("%s\n" %value)
|
||||||
|
|
||||||
if traceback:
|
if traceback:
|
||||||
|
ui.error(_("""
|
||||||
|
Internal PISI Error:
|
||||||
|
Please file a bug report! (http://bugs.uludag.org.tr)
|
||||||
|
"""))
|
||||||
ui.info(_("Traceback:"))
|
ui.info(_("Traceback:"))
|
||||||
traceback.print_tb(tb)
|
traceback.print_tb(tb)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user