diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-12-25 07:22:20 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-12-25 07:22:20 +0000 |
commit | da15407326cc84a52319b899a468203a5ee76e27 (patch) | |
tree | 9ff7f4598e2e5b56f21bd6cdb1787712d468568a | |
parent | b70234092cc402ae7adb9065df641806431a969d (diff) | |
download | rdiff-backup-da15407326cc84a52319b899a468203a5ee76e27.tar.gz |
Added error message if can't find repository
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r1-0@723 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r-- | rdiff-backup/rdiff_backup/Main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py index fc3142c..c849e81 100644 --- a/rdiff-backup/rdiff_backup/Main.py +++ b/rdiff-backup/rdiff_backup/Main.py @@ -486,7 +486,9 @@ def Restore(src_rp, dest_rp, restore_as_of = None): mirror file), dest_rp should be the target rp to be written. """ - if not restore_root_set: assert restore_set_root(src_rp) + if not restore_root_set and not restore_set_root(src_rp): + Log.FatalError("Could not find rdiff-backup repository at " + + src_rp.path) restore_check_paths(src_rp, dest_rp, restore_as_of) restore_set_fs_globals(dest_rp) init_user_group_mapping(dest_rp.conn) |