diff options
author | Marius <mariausol@gmail.com> | 2013-01-17 19:40:22 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-01-17 19:40:22 +0200 |
commit | 3346c745a354c0726c1ec68fb1f2d04e5bc85a9b (patch) | |
tree | 3f08d6fdf3111495759842f46bce62e159d4b9bf /tex/context/base/mlib-run.lua | |
parent | fe55ae49d8deddeb8f02557e3902c847804b0086 (diff) | |
download | context-3346c745a354c0726c1ec68fb1f2d04e5bc85a9b.tar.gz |
beta 2013.01.17 18:16
Diffstat (limited to 'tex/context/base/mlib-run.lua')
-rw-r--r-- | tex/context/base/mlib-run.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/mlib-run.lua b/tex/context/base/mlib-run.lua index 6a23fe316..16ab55c3b 100644 --- a/tex/context/base/mlib-run.lua +++ b/tex/context/base/mlib-run.lua @@ -161,8 +161,11 @@ function metapost.reporterror(result) if t and t ~= "" then (metapost.texerrors and texerrormessage or report_metapost)("terminal: %s",t) end + if e == "" or e == "no-error" then + e = nil + end if e then - (metapost.texerrors and texerrormessage or report_metapost)("error: %s",(e=="" and "?") or e) + (metapost.texerrors and texerrormessage or report_metapost)("error: %s",e) end if not t and not e and l then metapost.lastlog = metapost.lastlog .. "\n" .. l @@ -458,7 +461,7 @@ function metapost.process(mpx, data, trialrun, flusher, multipass, isextrapass, end if not metapost.reporterror(result) then if metapost.showlog then - local str = (result.term ~= "" and result.term) or "no terminal output" + local str = result.term ~= "" and result.term or "no terminal output" if not emptystring(str) then metapost.lastlog = metapost.lastlog .. "\n" .. str report_metapost("log: %s",str) |