Skip to content

Commit 00c32ba

Browse files
authored
pkg: minor fix is sys_poll library (ocaml#11497)
`Io.String_path.lines_of_file` raises `Sys_error` rather than `Unix_error`. Signed-off-by: Stephen Sherratt <[email protected]>
1 parent d9c52fc commit 00c32ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dune_pkg/sys_poll.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ let os ~path =
9898
let maybe_read_lines p =
9999
match Io.String_path.lines_of_file p with
100100
| s -> Some s
101-
| exception Unix.Unix_error (Unix.ENOENT, _, _) -> None
101+
| exception Sys_error _ -> None
102102
;;
103103

104104
let os_release_fields () =

0 commit comments

Comments
 (0)