summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/restore_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-06 21:29:42 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-08 13:40:19 +0000
commit04fb909d0020b68a87138e58168ce4cb8b811565 (patch)
treed7463c2b984838abfafcd8c75b5e3b5d9f0d3cbd /obnamlib/plugins/restore_plugin.py
parente3c90808693fc6e75d5834863206512104c439e4 (diff)
downloadobnam-04fb909d0020b68a87138e58168ce4cb8b811565.tar.gz
Display restore errors correctly
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r--obnamlib/plugins/restore_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index ad9ba6f7..87814ad7 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -237,13 +237,13 @@ class RestorePlugin(obnamlib.ObnamPlugin):
msg = ('Could not set metadata: %s: %d: %s' %
(pathname, e.errno, e.strerror))
logging.error(msg)
- self.app.ts.notify(msg)
+ self.app.ts.error(msg)
self.errors = True
except Exception, e:
# Reaching this code path means we've hit a bug, so we log a full traceback.
msg = "Failed to restore %s:" % (pathname,)
logging.exception(msg)
- self.app.ts.notify(msg + " " + str(e))
+ self.app.ts.error(msg + " " + str(e))
self.errors = True
def restore_dir(self, gen, root, metadata):