Commit 7ff58766 authored by bescoto's avatar bescoto

Fixed SelectError error message


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