We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c535b commit e8acd57Copy full SHA for e8acd57
lib/matplotlib/backends/backend_pgf.py
@@ -310,8 +310,10 @@ def __init__(self):
310
test_input = self.latex_header + latex_end
311
stdout, stderr = latex.communicate(test_input)
312
if latex.returncode != 0:
313
- raise LatexError("LaTeX returned an error, probably missing font "
314
- "or error in preamble.", stdout)
+ raise LatexError(
+ f"LaTeX errored (probably missing font or error in preamble) "
315
+ f"while processing the following input:\n{test_input}",
316
+ stdout)
317
318
self.latex = None # Will be set up on first use.
319
# Per-instance cache.
0 commit comments