mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Display stderr and stdout for LaTeX too.
This commit is contained in:
parent
e6a6087335
commit
a8c1a75e81
@ -112,7 +112,8 @@ def render_math(self, math):
|
||||
return relfn, None
|
||||
stdout, stderr = p.communicate()
|
||||
if p.returncode != 0:
|
||||
raise MathExtError('latex exited with error:\n' + stdout)
|
||||
raise MathExtError('latex exited with error:\n[stderr]\n%s\n[stdout]\n%s'
|
||||
% (stderr, stdout))
|
||||
|
||||
ensuredir(path.dirname(outfn))
|
||||
# use some standard dvipng arguments
|
||||
@ -137,8 +138,8 @@ def render_math(self, math):
|
||||
return relfn, None
|
||||
stdout, stderr = p.communicate()
|
||||
if p.returncode != 0:
|
||||
raise MathExtError('dvipng exited with error:\n[stdout]\n%s\n[stderr]%s'
|
||||
% (stdout, stderr))
|
||||
raise MathExtError('dvipng exited with error:\n[stderr]\n%s\n[stdout]\n%s'
|
||||
% (stderr, stdout))
|
||||
depth = None
|
||||
if use_preview:
|
||||
for line in stdout.splitlines():
|
||||
|
Loading…
Reference in New Issue
Block a user