summaryrefslogtreecommitdiff
path: root/obnam
diff options
context:
space:
mode:
Diffstat (limited to 'obnam')
-rwxr-xr-xobnam4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnam b/obnam
index d7e75052..f41ad9d2 100755
--- a/obnam
+++ b/obnam
@@ -33,6 +33,6 @@ else:
obnamlib.BackupApplication().run()
except Exception, e:
logging.debug(traceback.format_exc())
- logging.error(str(e))
- sys.stdout.write("ERROR: %s\n" % str(e))
+ logging.error(str(e) or repr(e))
+ sys.stdout.write("ERROR: %s\n" % (str(e) or repr(e)))
sys.exit(1)