Skip to content

Commit

Permalink
Fix error handling during client TLS config setup (#8025)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelvocks authored Dec 18, 2019
1 parent 39455f3 commit 488be87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion command/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 488be87

Please sign in to comment.