diff options
author | Reto Brunner <reto@labrat.space> | 2020-07-03 08:12:19 +0200 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-07-05 12:22:45 +0200 |
commit | fc2c6fff0d141ecdcabb7c10dca4e737e78937ad (patch) | |
tree | 16d9dc7d0fb62b894bd047761c0ee756995de486 | |
parent | 0acd6d0770d6534489e5fb54ce744838e81571ff (diff) | |
download | aerc-fc2c6fff0d141ecdcabb7c10dca4e737e78937ad.tar.gz |
delete: push unsupported error up to the user
-rw-r--r-- | commands/msg/delete.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/msg/delete.go b/commands/msg/delete.go index e74bf10..6eb35eb 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") } }) |