mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fix error handling during client TLS config setup (#8025)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user