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:
fiddlosopher 2006-11-14 01:32:22 +00:00
parent 19486ee0e1
commit 66676b88db

View file

@ -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 $?