From b7a0ecb76cdc4e5e4412cd4e0dff488ba32fc933 Mon Sep 17 00:00:00 2001 From: bescoto Date: Wed, 6 Aug 2003 08:24:33 +0000 Subject: Fixed SelectError error message git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@378 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff_backup/selection.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rdiff-backup/rdiff_backup/selection.py b/rdiff-backup/rdiff_backup/selection.py index 29b12e8..671ee97 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)) -- cgit v1.2.1