Don't throw error if cannot connect to server

This commit is contained in:
Zack Scholl 2019-05-02 11:41:03 -07:00
parent abc5e3f6c0
commit 95c2b0f48a
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
log.Debugf("banner: %s", banner)
if err != nil {
err = errors.Wrap(err, fmt.Sprintf("could not connect to %s", c.Options.RelayAddress))
log.Debug(err)
return
}
log.Debugf("connection established: %+v", conn)