add error handler

This commit is contained in:
Daniel Barlow 2024-09-27 19:47:31 +01:00
parent d98f78db85
commit e4410323cf
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@
:host addr
:port (tonumber port)
:onstream on-stream
:onerror (fn [server ctx op err errno]
(print (view { : server : ctx : err : errno })))
:tls true
:ctx (ssl-context)
}))))