cmd/fshim/ipc: friendly setup timeout message
test / test (push) Successful in 22s Details

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>
This commit is contained in:
Ophestra Umiker 2024-11-03 02:03:30 +09:00
parent 422d8e00d5
commit 8cd3651bb6
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ func (s *Shim) Start(f CommandBuilder) (*time.Time, error) {
conn = c conn = c
} }
case <-time.After(shimSetupTimeout): 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) s.AbortWait(err)
return &startTime, err return &startTime, err
} }