Better error messages in markdown2pdf: print only the latex errors,
not the whole log file. git-svn-id: https://pandoc.googlecode.com/svn/trunk@98 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
19486ee0e1
commit
66676b88db
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ iconv -f utf-8 > $TEMP/$BASE.tex && (
|
|||
cd $TEMP
|
||||
if ! pdflatex -interaction=batchmode $BASE.tex >/dev/null 2>&1; then
|
||||
echo >&2 "LaTeX errors:"
|
||||
cat >&2 $BASE.log
|
||||
sed -ne '/^!/,/^ *$/p' $BASE.log >&2
|
||||
exit 1
|
||||
fi
|
||||
) || exit $?
|
||||
|
|
Loading…
Add table
Reference in a new issue