delete: push unsupported error up to the user
This commit is contained in:
parent
0acd6d0770
commit
fc2c6fff0d
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
aerc.PushStatus("Messages deleted.", 10*time.Second)
|
aerc.PushStatus("Messages deleted.", 10*time.Second)
|
||||||
case *types.Error:
|
case *types.Error:
|
||||||
aerc.PushError(" " + msg.Error.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")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue