about summary refs log tree commit diff stats
path: root/commands/compose
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose')
-rw-r--r--commands/compose/send.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index f61478f..849182d 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()
ff7aa2ff9f0583e1fb9fc364'>^
30b5f112 ^








6dabbbd5 ^





30b5f112 ^
6dabbbd5 ^


6dabbbd5 ^
30b5f112 ^

6dabbbd5 ^
30b5f112 ^
b21edfaa ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50