Commit 3988d2f5 authored by bescoto's avatar bescoto

Added error message if can't find repository


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@723 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 564883e1
......@@ -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)
......
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