def parse_catch_error(self, exc):
"""Deal with selection error exc"""
if isinstance(exc, FilePrefixError):
log.Log.FatalError(
"""Fatal Error: The file specification
'%s'
cannot match any files in the base directory
'%s'
Useful file specifications begin with the base directory or some
pattern (such as '**') which matches the base directory.""" %
(exc, self.prefix))
elif isinstance(exc, GlobbingError):
log.Log.FatalError("Fatal Error while processing expression\n"
"%s" % exc)
else: raise
评论列表
文章目录