Commit 2e3af5a2 authored by bescoto's avatar bescoto

Added more sensible error message when restore source directory doesn't exist


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@531 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 60e8c8c0
......@@ -78,7 +78,8 @@ def set_security_level(action, cmdpairs):
sec_level = "read-only"
Main.restore_set_root(rpath.RPath(Globals.local_connection,
getpath(cp1)))
rdir = Main.restore_root.path
if Main.restore_root: rdir = Main.restore_root.path
else: log.Log.FatalError("Invalid restore directory")
else:
assert islocal(cp2)
sec_level = "all"
......
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