From a9b1482ed78930d366618cec7ca15d03d9261130 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 23 Nov 2023 14:39:26 +0100 Subject: Check error --- client/go/internal/cli/cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/go') 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 { -- cgit v1.2.3