diff options
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() |