aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--markdown2pdf2
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 $?