summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-08-06 08:24:33 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-08-06 08:24:33 +0000
commitea6a1fea36a975f2c541738f2c8df0099682d2cc (patch)
treeefd025904fed4774975eb200fd3edd8e6d76a3b3
parentcc15e3f43a0d7f97e2a963822c2851623ffc1365 (diff)
downloadrdiff-backup-ea6a1fea36a975f2c541738f2c8df0099682d2cc.tar.gz
Fixed SelectError error message
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@378 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/selection.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/rdiff-backup/rdiff_backup/selection.py b/rdiff-backup/rdiff_backup/selection.py
index e87ef8b..b502013 100644
--- a/rdiff-backup/rdiff_backup/selection.py
+++ b/rdiff-backup/rdiff_backup/selection.py
@@ -262,7 +262,8 @@ class Select:
elif opt == "--include-regexp":
self.add_selection_func(self.regexp_get_sf(arg, 1))
else: assert 0, "Bad selection option %s" % opt
- except IOError: pass#SelectError, e: self.parse_catch_error(e)
+ except IOError: pass
+ except SelectError, e: self.parse_catch_error(e)
assert filelists_index == len(filelists)
self.parse_last_excludes()
@@ -273,9 +274,9 @@ class Select:
if isinstance(exc, FilePrefixError):
log.Log.FatalError(
"""Fatal Error: The file specification
-' %s'
+ '%s'
cannot match any files in the base directory
-' %s'
+ '%s'
Useful file specifications begin with the base directory or some
pattern (such as '**') which matches the base directory.""" %
(exc, self.prefix))