@@ -1471,9 +1471,10 @@ def convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble,
1471
1471
stdout = fout , stderr = subprocess .STDOUT )
1472
1472
except subprocess .CalledProcessError as exc :
1473
1473
with io .open (outfile , 'rb' ) as fh :
1474
- raise RuntimeError ('LaTeX was not able to process your file: '
1475
- 'Here is the full report generated by LaTeX'
1476
- '\n \n %s' % (fh .read ()))
1474
+ raise RuntimeError ('LaTeX was not able to process the following '
1475
+ 'file:\n %s\n '
1476
+ 'Here is the full report generated by LaTeX:'
1477
+ '%s\n \n ' % (latexfile , fh .read ()))
1477
1478
else :
1478
1479
with io .open (outfile , 'rb' ) as fh :
1479
1480
verbose .report (fh .read (), 'debug' )
@@ -1485,12 +1486,12 @@ def convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble,
1485
1486
try :
1486
1487
with open (outfile , "w" ) as fout :
1487
1488
subprocess .check_call (command , cwd = tmpdir ,
1488
- stdout = fout , stderr = subprocess .STDOUT )
1489
+ stdout = fout , stderr = subprocess .STDOUT )
1489
1490
except subprocess .CalledProcessError as exc :
1490
1491
with io .open (outfile , 'rb' ) as fh :
1491
1492
raise RuntimeError ('dvips was not able to process the following '
1492
1493
'file:\n %s\n Here is the full report generated '
1493
- 'by dvips: \n \n ' % dvifile + fh .read ())
1494
+ 'by dvips: %s \n \n ' % ( dvifile , fh .read () ))
1494
1495
else :
1495
1496
with io .open (outfile , 'rb' ) as fh :
1496
1497
verbose .report (fh .read (), 'debug' )
0 commit comments