diff options
author | Eirik Nygaard <eirik.nygaard@yahooinc.com> | 2023-08-31 11:43:01 +0200 |
---|---|---|
committer | Eirik Nygaard <eirik.nygaard@yahooinc.com> | 2023-08-31 11:43:01 +0200 |
commit | 08ab7799ab81123dea3594aa29413cc5f3b7d50a (patch) | |
tree | 0191a1bf2c33076fdba7edf3c32910c00fbceefc | |
parent | 3613451e6e00081cb1294ed35ab5c79e62a5d304 (diff) |
When no endpoints are found, output the zone they were looked for in
-rw-r--r-- | client/go/internal/vespa/target_cloud.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/go/internal/vespa/target_cloud.go b/client/go/internal/vespa/target_cloud.go index 2063e15e3a2..7d50d921216 100644 --- a/client/go/internal/vespa/target_cloud.go +++ b/client/go/internal/vespa/target_cloud.go @@ -374,10 +374,10 @@ func (t *cloudTarget) discoverEndpoints(timeout time.Duration) (map[string]strin return true, nil } if _, err := t.deployServiceWait(endpointFunc, func() *http.Request { return req }, timeout); err != nil { - return nil, fmt.Errorf("no endpoints found%s: %w", waitDescription(timeout), err) + return nil, fmt.Errorf("no endpoints found in zone %s%s: %w", t.deploymentOptions.Deployment.Zone, waitDescription(timeout), err) } if len(urlsByCluster) == 0 { - return nil, fmt.Errorf("no endpoints found%s", waitDescription(timeout)) + return nil, fmt.Errorf("no endpoints found in zone %s%s", t.deploymentOptions.Deployment.Zone, waitDescription(timeout)) } return urlsByCluster, nil } |