summaryrefslogtreecommitdiffstats
path: root/client/go/internal/cli/cmd/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/internal/cli/cmd/status.go')
-rw-r--r--client/go/internal/cli/cmd/status.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/go/internal/cli/cmd/status.go b/client/go/internal/cli/cmd/status.go
index 29a4a5775db..6056ee439b2 100644
--- a/client/go/internal/cli/cmd/status.go
+++ b/client/go/internal/cli/cmd/status.go
@@ -176,7 +176,11 @@ $ vespa status deployment -t local [session-id] --wait 600
waiter := cli.waiter(time.Duration(waitSecs) * time.Second)
id, err := waiter.Deployment(t, wantedID)
if err != nil {
- return err
+ var hints []string
+ if waiter.Timeout == 0 {
+ hints = []string{"Consider using the --wait flag to wait for completion"}
+ }
+ return ErrCLI{Status: 1, warn: true, hints: hints, error: err}
}
if t.IsCloud() {
log.Printf("Deployment run %s has completed", color.CyanString(strconv.FormatInt(id, 10)))