diff options
Diffstat (limited to 'commands/compose/send.go')
-rw-r--r-- | commands/compose/send.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index 7eeb124c..e53b01a3 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -79,6 +79,9 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { if err != nil { return errors.Wrap(err, "listRecipients") } + if len(rcpts) == 0 { + return errors.New("Cannot send message with no recipients") + } uri, err := url.Parse(outgoing) if err != nil { |