diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-11-23 14:39:26 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-11-23 14:39:26 +0100 |
commit | a9b1482ed78930d366618cec7ca15d03d9261130 (patch) | |
tree | f6649533758a4088bacb392b10837d565e1ff875 /client | |
parent | f59873e5e8b4742068e5c9b4a8e6863686fc6700 (diff) |
Check error
Diffstat (limited to 'client')
-rw-r--r-- | client/go/internal/cli/cmd/root.go | 3 |
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 { |