delete: push unsupported error up to the user

This commit is contained in:
Reto Brunner 2020-07-03 08:12:19 +02:00
parent 0acd6d0770
commit fc2c6fff0d
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
aerc.PushStatus("Messages deleted.", 10*time.Second)
case *types.Error:
aerc.PushError(" " + msg.Error.Error())
case *types.Unsupported:
// notmuch doesn't support it, we want the user to know
aerc.PushError(" error, unsupported for this worker")
}
})