mirror of https://github.com/Hilbis/Hilbish
fix: print error on event error and dont release hook (closes #226)
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…
Reference in New Issue