diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-11-14 01:32:22 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-11-14 01:32:22 +0000 |
commit | 66676b88dbda66dd6107c29b9ff70f0be942fca0 (patch) | |
tree | adfbdedcb6d424d1a6a1729d74a69e91860a9300 | |
parent | 19486ee0e17b12ed5a0c800c8cd8e43fe3522065 (diff) | |
download | pandoc-66676b88dbda66dd6107c29b9ff70f0be942fca0.tar.gz |
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
-rw-r--r-- | markdown2pdf | 2 |
1 files changed, 1 insertions, 1 deletions
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 $? |