summaryrefslogtreecommitdiffstats
path: root/acf/error.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/error.lua')
-rw-r--r--acf/error.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/acf/error.lua b/acf/error.lua
index 7157d37..82fa6d7 100644
--- a/acf/error.lua
+++ b/acf/error.lua
@@ -48,7 +48,7 @@ function M.ErrorDict:collect(func, ...)
xpcall(
function() return func(unpack(arg)) end,
function(err)
- local _, _, data = string.find(err, '.-: (.+)')
+ local _, _, data = err:find('.-: (.+)')
local success, res = pcall(json.decode, data)
if success and type(res) == 'table' then return res end
return data..'\n'..debug.traceback()