2
3
镜像来自 https://github.com/sammy-ette/Hilbish synced 2025-08-10 02:52:03 +00:00

fix: print error on event error and dont release hook (closes #226)

This commit is contained in:
sammyette 2023-01-07 07:39:36 -04:00
父節點 ef5363cb1f
當前提交 887260cd8a
簽署人: sammyette
GPG Key ID: 904FC49417B44DCD

查看文件

@ -67,7 +67,7 @@ do
end end
bait.catch('error', function(event, handler, err) bait.catch('error', function(event, handler, err)
bait.release(event, handler) print(string.format('Encountered an error in %s handler\n%s', event, err:sub(8)))
end) end)
bait.catch('command.not-found', function(cmd) bait.catch('command.not-found', function(cmd)