diff --git a/cmd/pro/start.go b/cmd/pro/start.go index 8547cde53..f307cd0cd 100644 --- a/cmd/pro/start.go +++ b/cmd/pro/start.go @@ -812,7 +812,7 @@ func (cmd *StartCmd) waitForLoftDocker(ctx context.Context, containerID string) if cmd.NoTunnel { return "", fmt.Errorf( "%w: %s", - ErrLoftNotReachable, + ErrPlatformNotReachable, "cannot connect to Devsy Pro as it has no exposed port and --no-tunnel is enabled", ) } @@ -2174,7 +2174,8 @@ func getHelmWorkdir(chartName string) (string, error) { var ( ErrMissingContainer = errors.New("missing container") - ErrLoftNotReachable = errors.New("Devsy Pro is not reachable") + //nolint:staticcheck // ST1005: "Devsy Pro" is a proper noun + ErrPlatformNotReachable = errors.New("Devsy Pro is not reachable") ) type ContainerDetails struct { diff --git a/pkg/tunnel/services.go b/pkg/tunnel/services.go index fe149ce9c..cb86ac54c 100644 --- a/pkg/tunnel/services.go +++ b/pkg/tunnel/services.go @@ -258,10 +258,7 @@ func RunServices(ctx context.Context, opts RunServicesOptions) error { Factor: retryFactor, Jitter: retryJitter, }, func(err error) bool { - if ctx.Err() != nil { - return false - } - return true + return ctx.Err() == nil }, func() error { return runServicesIteration(ctx, opts, forwardedPorts, resolver) })