aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-11-03 02:03:30 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-11-03 02:03:30 +0900
commit8cd3651bb612200bc1a4c7456e5722fb24bc10b7 (patch)
treebb0a3cc616c4792b384c04324744a43d9da2bf19
parent422d8e00d5b5abad4b57a639822403487520f29a (diff)
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 <cat@ophivana.moe>
-rw-r--r--cmd/fshim/ipc/shim/shim.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/fshim/ipc/shim/shim.go b/cmd/fshim/ipc/shim/shim.go
index 5e1606e3..e1205b08 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
}