summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/restore_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-01-24 20:37:52 +0200
committerLars Wirzenius <liw@liw.fi>2015-01-24 20:37:52 +0200
commitcdff63e8066d21243b906ada554b667f868ed20b (patch)
treed0230bc1812f03742dfc83ea7dba26bde2aafce9 /obnamlib/plugins/restore_plugin.py
parent19cc1f700c59e654b93af8d687d19557a713aa15 (diff)
downloadobnam-cdff63e8066d21243b906ada554b667f868ed20b.tar.gz
Make error message clearer
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r--obnamlib/plugins/restore_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index 5b055743..891cc8a5 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -307,7 +307,8 @@ class RestorePlugin(obnamlib.ObnamPlugin):
correct_checksum = metadata.md5
if summer.digest() != correct_checksum:
msg = 'File checksum restore error: %s' % filename
- msg += '(%s vs %s)' % (summer.digest(), correct_checksum)
+ msg += ' (%s vs %s)' % (
+ summer.hexdigest(), correct_checksum.encode('hex'))
logging.error(msg)
self.app.ts.notify(msg)
self.errors = True