Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07f8987

Browse filesBrowse files
authored
Merge pull request #23036 from anntzer/tsp
Suppress traceback chaining for tex subprocess failures.
2 parents 64bcdc4 + 80d93a6 commit 07f8987
Copy full SHA for 07f8987

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎lib/matplotlib/texmanager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/texmanager.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,13 @@ def _run_checked_subprocess(cls, command, tex, *, cwd=None):
261261
raise RuntimeError(
262262
'{prog} was not able to process the following string:\n'
263263
'{tex!r}\n\n'
264-
'Here is the full report generated by {prog}:\n'
264+
'Here is the full command invocation and its output:\n\n'
265+
'{format_command}\n\n'
265266
'{exc}\n\n'.format(
266267
prog=command[0],
268+
format_command=cbook._pformat_subprocess(command),
267269
tex=tex.encode('unicode_escape'),
268-
exc=exc.output.decode('utf-8'))) from exc
270+
exc=exc.output.decode('utf-8'))) from None
269271
_log.debug(report)
270272
return report
271273

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.