From 353284bd497f66fc63258d583e1f9f2ffb729bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Mon, 30 Nov 2020 11:54:42 +0100 Subject: [PATCH] Reword bridge detection error message --- src/vmm_unix.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vmm_unix.ml b/src/vmm_unix.ml index 38347ed..bf95132 100644 --- a/src/vmm_unix.ml +++ b/src/vmm_unix.ml @@ -236,6 +236,7 @@ let bridge_exists bridge_name = | Linux -> Bos.Cmd.(v "ip" % "link" % "show" % bridge_name) in 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 = List.fold_left