about summary refs log tree commit diff stats
path: root/commands/msg/delete.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-07-03 08:12:19 +0200
committerReto Brunner <reto@labrat.space>2020-07-05 12:22:45 +0200
commitfc2c6fff0d141ecdcabb7c10dca4e737e78937ad (patch)
tree16d9dc7d0fb62b894bd047761c0ee756995de486 /commands/msg/delete.go
parent0acd6d0770d6534489e5fb54ce744838e81571ff (diff)
downloadaerc-fc2c6fff0d141ecdcabb7c10dca4e737e78937ad.tar.gz
delete: push unsupported error up to the user
Diffstat (limited to 'commands/msg/delete.go')
-rw-r--r--commands/msg/delete.go3
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")
 		}
 	})