Node: catch correct P2P exn
This commit is contained in:
parent
5c428a5ea3
commit
01fe34bc4b
@ -255,7 +255,7 @@ let create
|
|||||||
Lwt.catch
|
Lwt.catch
|
||||||
worker_loop
|
worker_loop
|
||||||
(function
|
(function
|
||||||
| Lwt_stream.Empty -> cleanup ()
|
| Queue.Empty -> cleanup ()
|
||||||
| exn ->
|
| exn ->
|
||||||
lwt_log_error "unexpected exception in worker\n%s"
|
lwt_log_error "unexpected exception in worker\n%s"
|
||||||
(Printexc.to_string exn) >>= fun () ->
|
(Printexc.to_string exn) >>= fun () ->
|
||||||
|
Loading…
Reference in New Issue
Block a user