summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2004-05-30 23:42:07 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2004-05-30 23:42:07 +0000
commitf999b1882126dc4f70341d5d194b40b636b1b5a3 (patch)
treea0fd399ba343f2f7d3b7c9d1bb95b9855ec0b993
parent63bfffff292157b23930eab3f387afe815a8a023 (diff)
downloadrdiff-backup-f999b1882126dc4f70341d5d194b40b636b1b5a3.tar.gz
Added more sensible error message when restore source directory doesn't exist
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@531 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/Security.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/Security.py b/rdiff-backup/rdiff_backup/Security.py
index b9000cc..4715f7e 100644
--- a/rdiff-backup/rdiff_backup/Security.py
+++ b/rdiff-backup/rdiff_backup/Security.py
@@ -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"