Fixed format string passed to core.error() in core.try()

This commit is contained in:
rxi 2020-04-26 21:40:25 +01:00
parent 16c1039666
commit 439537d63e

View file

@ -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, ...)