diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2012-02-15 08:42:53 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2012-02-15 08:42:53 +0100 |
commit | 65e6e362d662dba1ef40205673ce20c344c84fde (patch) | |
tree | 00f291d1a1218803a635cbca974e1e34e8769a7a | |
parent | b59f87eb05ce210c613a4c6b8cd93fb44ca86198 (diff) | |
download | sphinx-65e6e362d662dba1ef40205673ce20c344c84fde.tar.gz |
Clarify source directory error.
-rw-r--r-- | sphinx/cmdline.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index 5340aa88..006ac532 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -67,7 +67,8 @@ def main(argv): allopts = set(opt[0] for opt in opts) srcdir = confdir = path.abspath(args[0]) if not path.isdir(srcdir): - print >>sys.stderr, 'Error: Cannot find source directory.' + print >>sys.stderr, 'Error: Cannot find source directory `%s'.' % ( + srcdir,) return 1 if not path.isfile(path.join(srcdir, 'conf.py')) and \ '-c' not in allopts and '-C' not in allopts: |