From 65e6e362d662dba1ef40205673ce20c344c84fde Mon Sep 17 00:00:00 2001 From: Robert Lehmann Date: Wed, 15 Feb 2012 08:42:53 +0100 Subject: Clarify source directory error. --- sphinx/cmdline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1