diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-01-24 20:37:52 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-01-24 20:37:52 +0200 |
commit | cdff63e8066d21243b906ada554b667f868ed20b (patch) | |
tree | d0230bc1812f03742dfc83ea7dba26bde2aafce9 /obnamlib/plugins/restore_plugin.py | |
parent | 19cc1f700c59e654b93af8d687d19557a713aa15 (diff) | |
download | obnam-cdff63e8066d21243b906ada554b667f868ed20b.tar.gz |
Make error message clearer
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r-- | obnamlib/plugins/restore_plugin.py | 3 |
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 |