2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-31 02:33:23 +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
parent ef5363cb1f
commit 887260cd8a
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -67,7 +67,7 @@ do
end
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)
bait.catch('command.not-found', function(cmd)