1. andrea_crotti
  2. sphinx

Commits

Robert Lehmann  committed fec8ebb

Clarify source directory error.

  • Participants
  • Parent commits 46bdc37
  • Branches default

Comments (0)

Files changed (1)

File sphinx/cmdline.py

View file
         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: