Do not print an empty exception message

This commit is contained in:
Fatih Aşıcı
2010-02-28 21:40:57 +00:00
parent 1285cbb7fc
commit b1c5f511ff
+3 -1
View File
@@ -56,7 +56,9 @@ def handle_exception(exception, value, tb):
if show_traceback:
ui.error("%s: %s" % (exception, str(value)))
else:
ui.error(str(value))
msg = str(value)
if msg:
ui.error(msg)
ui.info(_("Please use 'pisi help' for general help."))