-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
When writing to a closed Faraday.t an exception Failure "cannot write to closed writer" is raised. I am observing this exception from Httpaf.Body.write_string, and I'm wary of catching all Failures. Could a more precise exception be used?
Lines 193 to 195 in c66fc02
| let writable_exn t = | |
| if t.closed then | |
| failwith "cannot write to closed writer" |
Metadata
Metadata
Assignees
Labels
No labels