Fixed format string passed to core.error() in core.try()
This commit is contained in:
parent
16c1039666
commit
439537d63e
|
@ -260,7 +260,7 @@ end
|
|||
function core.try(fn, ...)
|
||||
local err
|
||||
local ok, res = xpcall(fn, function(msg)
|
||||
local item = core.error(msg)
|
||||
local item = core.error("%s", msg)
|
||||
item.info = debug.traceback(nil, 2):gsub("\t", "")
|
||||
err = msg
|
||||
end, ...)
|
||||
|
|
Loading…
Reference in a new issue