fix: a crash when the user provides a connection string there is no running server for is fixed
This commit is contained in:
parent
b297cf0ae2
commit
13931817dd
|
@ -55,7 +55,11 @@ func NewBaseClient(c *ConnectionParams) (*BaseClient, error) {
|
|||
|
||||
serverCert, err = getServerCert(u)
|
||||
if err != nil {
|
||||
certErrs = fmt.Errorf("%sconnecting to '%s' failed: %s; ", certErrs.Error(), u, err.Error())
|
||||
var certErr string
|
||||
if certErrs != nil {
|
||||
certErr = certErrs.Error()
|
||||
}
|
||||
certErrs = fmt.Errorf("%sconnecting to '%s' failed: %s; ", certErr, u, err.Error())
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue