From 66676b88dbda66dd6107c29b9ff70f0be942fca0 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Tue, 14 Nov 2006 01:32:22 +0000 Subject: 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 --- markdown2pdf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown2pdf b/markdown2pdf index 80b2723cf..993207d05 100644 --- a/markdown2pdf +++ b/markdown2pdf @@ -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 $? -- cgit v1.2.3