Get rid of the aerc.PushError(" " + $string) idiom
The individual callers should not be responsible for padding
This commit is contained in:
parent
949781fa0a
commit
8ea86cea41
18 changed files with 29 additions and 29 deletions
commands/msg
|
@ -47,7 +47,7 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
case *types.Done:
|
||||
aerc.PushStatus("Messages deleted.", 10*time.Second)
|
||||
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…
Add table
Add a link
Reference in a new issue