Skip to content

Commit 84b5ec0

Browse files
committed
Improve error message in generic_ssh_exec
This is related to #185, the error message at least shows the `"Killed by signal 1"` problem now.
1 parent 156b9fd commit 84b5ec0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/ketrew_host_io.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ module Ssh = struct
7272
| "" :: actual_stderr :: return_value :: [] ->
7373
begin match Int.of_string (String.strip return_value) with
7474
| Some r -> return (out, actual_stderr, r)
75-
| None -> fail_parsing "Return value not an integer"
75+
| None ->
76+
fail_parsing (fmt "Return value not an integer: %S" return_value)
7677
end
7778
| somehting_else -> fail_parsing "Cannot parse error log"
7879
in

0 commit comments

Comments
 (0)