From 439537d63e5b50c2bd342458725e17cc772edf9f Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 26 Apr 2020 21:40:25 +0100 Subject: [PATCH] Fixed format string passed to core.error() in core.try() --- data/core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/init.lua b/data/core/init.lua index 9d0f31d..18096ac 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -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, ...)