add error handler
This commit is contained in:
parent
d98f78db85
commit
e4410323cf
2
main.fnl
2
main.fnl
@ -129,6 +129,8 @@
|
|||||||
:host addr
|
:host addr
|
||||||
:port (tonumber port)
|
:port (tonumber port)
|
||||||
:onstream on-stream
|
:onstream on-stream
|
||||||
|
:onerror (fn [server ctx op err errno]
|
||||||
|
(print (view { : server : ctx : err : errno })))
|
||||||
:tls true
|
:tls true
|
||||||
:ctx (ssl-context)
|
:ctx (ssl-context)
|
||||||
}))))
|
}))))
|
||||||
|
Loading…
Reference in New Issue
Block a user