diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-11-15 21:03:33 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-11-15 21:03:33 +0100 |
commit | a9eb7ca71c27fdd59cf99273adf74b17d72063b2 (patch) | |
tree | bb5c72ee61c52da8046ed81bfe4b0906cd412030 /tex/context/base/mkiv/luat-run.lua | |
parent | 87bd04a46f60bb925f6c98b7977f30441f5e8944 (diff) | |
download | context-a9eb7ca71c27fdd59cf99273adf74b17d72063b2.tar.gz |
2020-11-15 20:43:00
Diffstat (limited to 'tex/context/base/mkiv/luat-run.lua')
-rw-r--r-- | tex/context/base/mkiv/luat-run.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/luat-run.lua b/tex/context/base/mkiv/luat-run.lua index cce6ab73b..874287ee1 100644 --- a/tex/context/base/mkiv/luat-run.lua +++ b/tex/context/base/mkiv/luat-run.lua @@ -302,12 +302,13 @@ callback.register("handle_overload", function(fatal,overload,csname,flags) local readstate = status.readstate local filename = readstate.filename local linenumber = readstate.linenumber + local flags = tokens.flags and tokens.flags(csname) or { } if filename and linenumber then report("%s, protection level %i, control sequence %a, properties '% t', file %a, line %i", - fatal and "fatal error" or "warning",overload,csname,tokens.flags(csname),filename,linenumber) + fatal and "fatal error" or "warning",overload,csname,flags,filename,linenumber) else report("%s, protection level %i, control sequence %a, properties '% t'", - fatal and "fatal error" or "warning",overload,csname,tokens.flags(csname)) + fatal and "fatal error" or "warning",overload,csname,flags) end reported[csname] = true logs.newline() |