From 27f03cecd5b193c9f0d36ca21c018d324488c746 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Wed, 25 May 2016 14:20:21 +0200 Subject: [PATCH] Fix MathExtError arguments in imgmath It's constructor is: ```class MathExtError(SphinxError): def __init__(self, msg, stderr=None, stdout=None):``` --- sphinx/ext/imgmath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py index 755e417fe..f7a48545b 100644 --- a/sphinx/ext/imgmath.py +++ b/sphinx/ext/imgmath.py @@ -185,7 +185,7 @@ def render_math(self, math): stdout, stderr = p.communicate() if p.returncode != 0: - raise MathExtError('%s exited with error', + raise MathExtError('%s exited with error' % image_translator, stderr, stdout) depth = None if use_preview and image_format == 'png': # depth is only useful for png