From da15407326cc84a52319b899a468203a5ee76e27 Mon Sep 17 00:00:00 2001 From: bescoto Date: Sun, 25 Dec 2005 07:22:20 +0000 Subject: 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 --- rdiff-backup/rdiff_backup/Main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1