Fix reported dir when throwing ApplicationError

if path.exists(self.outdir) and not path.isdir(self.outdir), error reported self.srcdir which should be self.outdir
This commit is contained in:
Brandon Houghton
2020-06-03 15:33:58 -04:00
committed by GitHub
parent 84e9494f80
commit cb9dd0a0b4

View File

@@ -165,7 +165,7 @@ class Sphinx:
if path.exists(self.outdir) and not path.isdir(self.outdir):
raise ApplicationError(__('Output directory (%s) is not a directory') %
self.srcdir)
self.outdir)
if self.srcdir == self.outdir:
raise ApplicationError(__('Source directory and destination '