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 e8acd57

Browse filesBrowse files
committed
Help troubleshooting of latex failures.
1 parent b5c535b commit e8acd57
Copy full SHA for e8acd57

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/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ def __init__(self):
310310
test_input = self.latex_header + latex_end
311311
stdout, stderr = latex.communicate(test_input)
312312
if latex.returncode != 0:
313-
raise LatexError("LaTeX returned an error, probably missing font "
314-
"or error in preamble.", stdout)
313+
raise LatexError(
314+
f"LaTeX errored (probably missing font or error in preamble) "
315+
f"while processing the following input:\n{test_input}",
316+
stdout)
315317

316318
self.latex = None # Will be set up on first use.
317319
# Per-instance cache.

0 commit comments

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