use _debug and better message

This commit is contained in:
craff 2021-11-29 23:38:28 -10:00
parent 6ccd8314a3
commit 19a4bad231

View file

@ -1101,8 +1101,9 @@ let run (self:t) : (unit,_) result =
raise e raise e
); );
with e -> with e ->
Printf.eprintf "accept raised an exception: %s" _debug (fun k -> k
(Printexc.to_string e) "Unix.accept or Thread.create raised an exception: %s"
(Printexc.to_string e))
done; done;
Ok () Ok ()
with e -> Error e with e -> Error e