mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #6549: sphinx-build: Escaped characters in error messages
This commit is contained in:
parent
8b4e54f904
commit
3fa3ff439c
1
CHANGES
1
CHANGES
@ -49,6 +49,7 @@ Bugs fixed
|
|||||||
* #6511: LaTeX: autonumbered list can not be customized in LaTeX
|
* #6511: LaTeX: autonumbered list can not be customized in LaTeX
|
||||||
since Sphinx 1.8.0 (refs: #6533)
|
since Sphinx 1.8.0 (refs: #6533)
|
||||||
* #6531: Failed to load last environment object when extension added
|
* #6531: Failed to load last environment object when extension added
|
||||||
|
* #6549: sphinx-build: Escaped characters in error messages
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -47,7 +47,7 @@ def handle_exception(app: Sphinx, args: Any, exception: BaseException, stderr: I
|
|||||||
print(terminal_safe(exception.args[0]), file=stderr)
|
print(terminal_safe(exception.args[0]), file=stderr)
|
||||||
elif isinstance(exception, SphinxError):
|
elif isinstance(exception, SphinxError):
|
||||||
print(red('%s:' % exception.category), file=stderr)
|
print(red('%s:' % exception.category), file=stderr)
|
||||||
print(terminal_safe(str(exception)), file=stderr)
|
print(str(exception), file=stderr)
|
||||||
elif isinstance(exception, UnicodeError):
|
elif isinstance(exception, UnicodeError):
|
||||||
print(red(__('Encoding error:')), file=stderr)
|
print(red(__('Encoding error:')), file=stderr)
|
||||||
print(terminal_safe(str(exception)), file=stderr)
|
print(terminal_safe(str(exception)), file=stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user