Commit 95ef4f23 authored by ben's avatar ben

Fixed error messages in restore_check_paths


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@31 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b5c6ff36
......@@ -279,12 +279,12 @@ went wrong during your last backup? Using """ + mirrorrps[-1].path, 2)
def restore_check_paths(self, rpin, rpout):
"""Check paths and return pair of corresponding rps"""
if not rpin.lstat():
Log.FatalError("Increment file %s does not exist" % src_path)
Log.FatalError("Increment file %s does not exist" % rpin.path)
if not rpin.isincfile():
Log.FatalError("""File %s does not look like an increment file.
Try restoring from an increment file (the filenames look like
"foobar.2001-09-01T04:49:04-07:00.diff").""")
"foobar.2001-09-01T04:49:04-07:00.diff").""" % rpin.path)
if not rpout: rpout = RPath(Globals.local_connection,
rpin.getincbase_str())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment