summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/trac-log.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-08-09 20:27:33 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-08-09 20:27:33 +0200
commit88dab5316e045e6bc15826f6b791b24abaf93d35 (patch)
tree306f6a6f19e6ee044d645fe8de7732f3db7267bc /tex/context/base/mkiv/trac-log.lua
parent30c6dc99b093fcf351f64974778d40c69aba08af (diff)
downloadcontext-88dab5316e045e6bc15826f6b791b24abaf93d35.tar.gz
2020-08-09 19:54:00
Diffstat (limited to 'tex/context/base/mkiv/trac-log.lua')
-rw-r--r--tex/context/base/mkiv/trac-log.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/trac-log.lua b/tex/context/base/mkiv/trac-log.lua
index bb154067f..d20a974e1 100644
--- a/tex/context/base/mkiv/trac-log.lua
+++ b/tex/context/base/mkiv/trac-log.lua
@@ -1154,3 +1154,16 @@ if tex then
end
end
+
+-- for now ... maybe directly but now we get the context too
+
+if tex.error then
+
+ local texerror = tex.error
+ local formatters = string.formatters
+
+ function logs.reporterror(fmt,first,...)
+ texerror(first and formatters[fmt](first,...) or fmt)
+ end
+
+end