diff options
author | Martin Polden <mpolden@mpolden.no> | 2024-06-05 15:34:27 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2024-06-05 15:34:27 +0200 |
commit | b8f472d0e7d4e9349db02fbbb5294174a0f520a3 (patch) | |
tree | e0f225c761588fcbc51f9ea227ad5d045b244fe5 /client/go/internal/vespa/target_cloud.go | |
parent | fade25bcac73e460b4bbded53f1821e7edb7e626 (diff) |
Only suggest --wait for non-terminal errors
Diffstat (limited to 'client/go/internal/vespa/target_cloud.go')
-rw-r--r-- | client/go/internal/vespa/target_cloud.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/go/internal/vespa/target_cloud.go b/client/go/internal/vespa/target_cloud.go index c063b99edef..da57fc66807 100644 --- a/client/go/internal/vespa/target_cloud.go +++ b/client/go/internal/vespa/target_cloud.go @@ -309,7 +309,7 @@ func (t *cloudTarget) AwaitDeployment(runID int64, timeout time.Duration) (int64 return false, nil } if resp.Status != "success" { - return false, fmt.Errorf("run %d ended with unsuccessful status: %s", runID, resp.Status) + return false, fmt.Errorf("%w: run %d ended with unsuccessful status: %s", ErrDeployment, runID, resp.Status) } success = true return success, nil |