diff options
author | Reto Brunner <reto@labrat.space> | 2021-02-28 02:04:58 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2021-02-28 02:05:12 +0100 |
commit | 8cd2485170e97867321fac2f26ba876f377d5d8e (patch) | |
tree | c6299dd5378364ae51666d2587e7e681e7d1f2f6 /commands | |
parent | 8b4f2d148c8519326f306fd14ba872d7cb3101c6 (diff) | |
download | aerc-8cd2485170e97867321fac2f26ba876f377d5d8e.tar.gz |
send: fix missing error return
Diffstat (limited to 'commands')
-rw-r--r-- | commands/compose/send.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index f61478f1..849182d5 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -320,6 +320,10 @@ func newSmtpSender(ctx sendCtx) (io.WriteCloser, error) { return nil, fmt.Errorf("not an smtp protocol %s", ctx.scheme) } + if err != nil { + return nil, errors.Wrap(err, "Connection failed") + } + saslclient, err := newSaslClient(ctx.auth, ctx.uri) if err != nil { conn.Close() |