From cb9dd0a0b47f4b5af6453d1b5e604774ab2076c5 Mon Sep 17 00:00:00 2001 From: Brandon Houghton Date: Wed, 3 Jun 2020 15:33:58 -0400 Subject: 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 --- sphinx/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx') diff --git a/sphinx/application.py b/sphinx/application.py index bd23c86e7..d84a2c975 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -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 ' -- cgit v1.2.3