From 186d047b4d6f26eafa3b2d09c2a6a357816c5edb Mon Sep 17 00:00:00 2001 From: Bianca Moreira Date: Tue, 5 Dec 2023 16:21:47 +0100 Subject: [PATCH] Improve error treatment --- connect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.go b/connect.go index decd5d1..337ae6e 100644 --- a/connect.go +++ b/connect.go @@ -76,7 +76,7 @@ func (c *HCPConnectCommand) Run(args []string) int { proxyAddr, err := c.getProxyAddr(c.rmOrgClient, c.rmProjClient, c.vsClient) if err != nil { if errors.Is(err, ErrorProxyDisabled) { - c.Ui.Info("\nFailed to connect to HCP Vault Cluster: HTTP proxy feature not enabled.") + c.Ui.Error("\nFailed to connect to HCP Vault Cluster: HTTP proxy feature not enabled.") return 1 } c.Ui.Error(fmt.Sprintf("\n%s", err.Error()))