Report non-network-failure exceptions more clearly
This commit is contained in:
parent
f4d1f5c800
commit
cd94df3cab
|
@ -110,7 +110,11 @@
|
|||
(handle-evt c-input-port
|
||||
(lambda (dummy)
|
||||
(define msg
|
||||
(with-handlers ([exn:fail:network? (lambda (e) eof)])
|
||||
(with-handlers ([exn:fail:network? (lambda (e) eof)]
|
||||
[exn:fail? (lambda (e)
|
||||
(log-error "Unexpected ws-recv error: ~a"
|
||||
(exn->string e))
|
||||
eof)])
|
||||
(ws-recv c #:payload-type 'text)))
|
||||
(send-ground-message (websocket-incoming-message id msg))
|
||||
(loop (or blocked? (eof-object? msg))))))))
|
||||
|
|
Loading…
Reference in New Issue