Skip to content

Commit 07f8987

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/texmanager.py

+4-2
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)