mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-15 22:41:50 +01:00
Fix error handling during client TLS config setup (#8025)
This commit is contained in:
parent
39455f38a8
commit
488be87f67
@ -98,7 +98,11 @@ func (c *BaseCommand) Client() (*api.Client, error) {
|
||||
TLSServerName: c.flagTLSServerName,
|
||||
Insecure: c.flagTLSSkipVerify,
|
||||
}
|
||||
config.ConfigureTLS(t)
|
||||
|
||||
// Setup TLS config
|
||||
if err := config.ConfigureTLS(t); err != nil {
|
||||
return nil, errors.Wrap(err, "failed to setup TLS config")
|
||||
}
|
||||
}
|
||||
|
||||
// Build the client
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user