From dcd33d3089bec1de05a96839d49e3bb586b918ad Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 12 May 2012 12:07:40 +0100 Subject: Bug fix: fail if filename given on command line does not exist --- summain | 2 ++ 1 file changed, 2 insertions(+) (limited to 'summain') diff --git a/summain b/summain index b82c108..55bb855 100755 --- a/summain +++ b/summain @@ -128,6 +128,8 @@ class Summain(cliapp.Application): dirnames.sort() for filename in sorted(filenames): yield os.path.join(dirname, filename) + elif not os.path.exists(root): + raise cliapp.AppException('Does not exist: %s' % root) else: yield root -- cgit v1.2.1