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

readline-upstream
sammyette 2023-01-07 07:39:36 -04:00
parent ef5363cb1f
commit 887260cd8a
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -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)