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:
parent
ef5363cb1f
commit
887260cd8a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user