1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00

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

@ -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")
}
})