forgot to catch Unix_error

This commit is contained in:
craff 2022-12-09 07:36:05 -10:00
parent 462fbd661c
commit 8c7b764b30

View file

@ -258,7 +258,7 @@ module Request = struct
} in } in
Ok (Some req) Ok (Some req)
with with
| End_of_file | Sys_error _ -> Ok None | End_of_file | Sys_error _ | Unix.Unix_error _ -> Ok None
| Bad_req (c,s) -> Error (c,s) | Bad_req (c,s) -> Error (c,s)
| e -> | e ->
Error (400, Printexc.to_string e) Error (400, Printexc.to_string e)