Reword bridge detection error message
This commit is contained in:
parent
b4a4a28634
commit
353284bd49
|
@ -236,6 +236,7 @@ let bridge_exists bridge_name =
|
||||||
| Linux -> Bos.Cmd.(v "ip" % "link" % "show" % bridge_name)
|
| Linux -> Bos.Cmd.(v "ip" % "link" % "show" % bridge_name)
|
||||||
in
|
in
|
||||||
Bos.OS.Cmd.(run_out ~err:err_null cmd |> out_null |> success)
|
Bos.OS.Cmd.(run_out ~err:err_null cmd |> out_null |> success)
|
||||||
|
|> R.reword_error (fun _e -> R.msgf "interface %s does not exist" bridge_name)
|
||||||
|
|
||||||
let bridges_exist bridges =
|
let bridges_exist bridges =
|
||||||
List.fold_left
|
List.fold_left
|
||||||
|
|
Loading…
Reference in a new issue