Closed copy closed 8 years ago
Note that for this particular problem, you can use ~raise_when_consumer_leave:false
when creating the writer, and you can use Writer.consumer_left
to be notified.
For you original question, you can't extract the original unix error. We usually don't match on exceptions directly
Note that for this particular problem, you can use ~raise_when_consumer_leave:false when creating the writer, and you can use Writer.consumer_left to be notified.
This works for me, thanks.
In writer0.ml line 439, exceptions raised in the inner monitor are wrapped into
Error
. Is there a way to extract the original exception or handle this exception in another way?Error
seems to be there only to provide human-readable messages.I would like to ignore broken pipes exceptions like this: