Merge pull request #7781 from brandonhoughton/patch-1

Fix reported dir when throwing ApplicationError
This commit is contained in:
Takeshi KOMIYA 2020-06-05 00:54:35 +09:00 committed by GitHub
commit b37675607b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 '