Fixed bug in error handling.
This commit is contained in:
parent
3b6d3553c8
commit
14f3ad993e
@ -55,7 +55,7 @@ debug.getinfo = function(thread, f, what)
|
|||||||
end
|
end
|
||||||
info.short_src = info.source:match('@([^[]*)') or info.short_src
|
info.short_src = info.source:match('@([^[]*)') or info.short_src
|
||||||
if info.name then
|
if info.name then
|
||||||
info.name = "action '" .. tostring(calling_fn.name:from_lua_id()) .. "'"
|
info.name = "action '" .. tostring(info.name:from_lua_id()) .. "'"
|
||||||
else
|
else
|
||||||
info.name = "main chunk"
|
info.name = "main chunk"
|
||||||
end
|
end
|
||||||
|
@ -42,7 +42,7 @@ debug.getinfo = (thread,f,what)->
|
|||||||
info.lastlinedefined = assert(map[info.lastlinedefined])
|
info.lastlinedefined = assert(map[info.lastlinedefined])
|
||||||
info.short_src = info.source\match('@([^[]*)') or info.short_src
|
info.short_src = info.source\match('@([^[]*)') or info.short_src
|
||||||
info.name = if info.name
|
info.name = if info.name
|
||||||
"action '#{calling_fn.name\from_lua_id!}'"
|
"action '#{info.name\from_lua_id!}'"
|
||||||
else "main chunk"
|
else "main chunk"
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user