mirror of
https://github.com/status-im/status-go.git
synced 2025-02-21 19:28:29 +00:00
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…
x
Reference in New Issue
Block a user