Skip to content

Commit

Permalink
Improve error treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
biazmoreira committed Dec 5, 2023
1 parent 1d6a24a commit 186d047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 186d047

Please sign in to comment.