Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-07-06 08:28:36 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-07-06 08:28:54 +0300
commit3fa3ff439c25da60892462c5eb86ee1d9e56e211 (patch)
treea6e78545474ab33edd06b650fc20d7f4a8138fef /sphinx/cmd
parent8b4e54f90413d26c60476ce8acdd908fbfc05a82 (diff)
Fix #6549: sphinx-build: Escaped characters in error messages
Diffstat (limited to 'sphinx/cmd')
-rw-r--r--sphinx/cmd/build.py2
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)