diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-06 08:28:36 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-06 08:28:54 +0300 |
commit | 3fa3ff439c25da60892462c5eb86ee1d9e56e211 (patch) | |
tree | a6e78545474ab33edd06b650fc20d7f4a8138fef /sphinx/cmd | |
parent | 8b4e54f90413d26c60476ce8acdd908fbfc05a82 (diff) |
Fix #6549: sphinx-build: Escaped characters in error messages
Diffstat (limited to 'sphinx/cmd')
-rw-r--r-- | sphinx/cmd/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index d2f6c13b7..8f7b33a3b 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -47,7 +47,7 @@ def handle_exception(app: Sphinx, args: Any, exception: BaseException, stderr: I print(terminal_safe(exception.args[0]), file=stderr) elif isinstance(exception, SphinxError): print(red('%s:' % exception.category), file=stderr) - print(terminal_safe(str(exception)), file=stderr) + print(str(exception), file=stderr) elif isinstance(exception, UnicodeError): print(red(__('Encoding error:')), file=stderr) print(terminal_safe(str(exception)), file=stderr) |