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