summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-05-12 12:07:40 +0100
committerLars Wirzenius <liw@liw.fi>2012-05-12 12:07:40 +0100
commitdcd33d3089bec1de05a96839d49e3bb586b918ad (patch)
treec01b82e1b8b62e5796fd6036b5e5d0714c179497 /summain
parent836e749824673b00c084e7f4361427edab1199fe (diff)
downloadsummain-dcd33d3089bec1de05a96839d49e3bb586b918ad.tar.gz
Bug fix: fail if filename given on command line does not exist
Diffstat (limited to 'summain')
-rwxr-xr-xsummain2
1 files changed, 2 insertions, 0 deletions
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