From fc2c6fff0d141ecdcabb7c10dca4e737e78937ad Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 3 Jul 2020 08:12:19 +0200 Subject: delete: push unsupported error up to the user --- commands/msg/delete.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/msg/delete.go b/commands/msg/delete.go index e74bf104..6eb35eba 100644 --- a/commands/msg/delete.go +++ b/commands/msg/delete.go @@ -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") } }) -- cgit