summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-11-23 14:39:26 +0100
committerMartin Polden <mpolden@mpolden.no>2023-11-23 14:39:26 +0100
commita9b1482ed78930d366618cec7ca15d03d9261130 (patch)
treef6649533758a4088bacb392b10837d565e1ff875 /client
parentf59873e5e8b4742068e5c9b4a8e6863686fc6700 (diff)
Check error
Diffstat (limited to 'client')
-rw-r--r--client/go/internal/cli/cmd/root.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/go/internal/cli/cmd/root.go b/client/go/internal/cli/cmd/root.go
index ff11a2e53a2..1f324658b69 100644
--- a/client/go/internal/cli/cmd/root.go
+++ b/client/go/internal/cli/cmd/root.go
@@ -473,6 +473,9 @@ func (c *CLI) createCloudTarget(targetType string, opts targetOptions, customURL
// Only setup API authentication if we're using "cloud" target, and not a direct URL
if customURL == "" {
apiAuth, err = c.cloudApiAuthenticator(deployment, system)
+ if err != nil {
+ return nil, err
+ }
}
deploymentTLSOptions = vespa.TLSOptions{}
if !opts.noCertificate {