From 8cd3651bb612200bc1a4c7456e5722fb24bc10b7 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 3 Nov 2024 02:03:30 +0900 Subject: [PATCH] cmd/fshim/ipc: friendly setup timeout message This message eventually gets returned by the app's Start method, so they should be wrapped to provide a friendly message. Signed-off-by: Ophestra Umiker --- cmd/fshim/ipc/shim/shim.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fshim/ipc/shim/shim.go b/cmd/fshim/ipc/shim/shim.go index 5e1606e..e1205b0 100644 --- a/cmd/fshim/ipc/shim/shim.go +++ b/cmd/fshim/ipc/shim/shim.go @@ -117,7 +117,8 @@ func (s *Shim) Start(f CommandBuilder) (*time.Time, error) { conn = c } case <-time.After(shimSetupTimeout): - err := errors.New("timed out waiting for shim") + err := fmsg.WrapError(errors.New("timed out waiting for shim"), + "timed out waiting for shim to connect") s.AbortWait(err) return &startTime, err }