Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 733d50b

Browse files
committed
fix error reporting when tex string includes unicode
svn path=/trunk/matplotlib/; revision=3287
1 parent 2716356 commit 733d50b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/texmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def make_dvi(self, tex, fontsize, force=0):
247247
exit_status = os.system(command)
248248
fh = file(outfile)
249249
if exit_status:
250-
raise RuntimeError('LaTeX was not able to process the flowing \
251-
string:\n%s\nHere is the full report generated by LaTeX: \n\n'% tex + fh.read())
250+
raise RuntimeError(('LaTeX was not able to process the following \
251+
string:\n%s\nHere is the full report generated by LaTeX: \n\n'% repr(tex)) + fh.read())
252252
else: verbose.report(fh.read(), 'debug')
253253
fh.close()
254254
for fname in glob.glob(basefile+'*'):

0 commit comments

Comments
 (0)