Skip to content

Commit 714fb00

Browse files
committed
Fix printing signal numbers
1 parent ba26623 commit 714fb00

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

bin/admin.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ let show () cap_path terse pool worker =
6565
let check_exit_status = function
6666
| Unix.WEXITED 0 -> ()
6767
| Unix.WEXITED x -> Fmt.failwith "Sub-process failed with exit code %d" x
68-
| Unix.WSIGNALED x -> Fmt.failwith "Sub-process failed with signal %d" x
69-
| Unix.WSTOPPED x -> Fmt.failwith "Sub-process stopped with signal %d" x
68+
| Unix.WSIGNALED x -> Fmt.failwith "Sub-process failed with signal %a" Fmt.Dump.signal x
69+
| Unix.WSTOPPED x -> Fmt.failwith "Sub-process stopped with signal %a" Fmt.Dump.signal x
7070

7171
let exec () cap_path pool command =
7272
run cap_path @@ fun admin_service ->

bin/worker.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ let or_die = function
1515
let check_exit_status = function
1616
| Unix.WEXITED 0 -> ()
1717
| Unix.WEXITED x -> Fmt.failwith "Sub-process failed with exit code %d" x
18-
| Unix.WSIGNALED x -> Fmt.failwith "Sub-process failed with signal %d" x
19-
| Unix.WSTOPPED x -> Fmt.failwith "Sub-process stopped with signal %d" x
18+
| Unix.WSIGNALED x -> Fmt.failwith "Sub-process failed with signal %a" Fmt.Dump.signal x
19+
| Unix.WSTOPPED x -> Fmt.failwith "Sub-process stopped with signal %a" Fmt.Dump.signal x
2020

2121
module Self_update = struct
2222
let service = "builder_agent"

0 commit comments

Comments
 (0)