aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/compose/send.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 2606d5f4..f61478f1 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -113,6 +113,7 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error {
}
if err != nil {
failCh <- errors.Wrap(err, "send:")
+ return
}
var writer io.Writer = sender
@@ -132,7 +133,7 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error {
go func() {
err = <-failCh
if err != nil {
- aerc.PushError(err.Error())
+ aerc.PushError(strings.ReplaceAll(err.Error(), "\n", " "))
aerc.NewTab(composer, tabName)
return
}