diff options
author | Reto Brunner <reto@labrat.space> | 2021-01-30 13:51:32 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2021-01-30 14:04:23 +0100 |
commit | 8ea86cea41aa038a25a8fee9cd540a7336869dae (patch) | |
tree | 11970859b928dfa06203962b58941e889295edc0 /commands/msgview | |
parent | 949781fa0a5f0654112b4f78558347ca991a89d3 (diff) | |
download | aerc-8ea86cea41aa038a25a8fee9cd540a7336869dae.tar.gz |
Get rid of the aerc.PushError(" " + $string) idiom
The individual callers should not be responsible for padding
Diffstat (limited to 'commands/msgview')
-rw-r--r-- | commands/msgview/open.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go index 47b4369..57e7227 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -44,14 +44,14 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { tmpFile, err := ioutil.TempFile(os.TempDir(), "aerc-*"+extension) if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) return } defer tmpFile.Close() _, err = io.Copy(tmpFile, reader) if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) return } @@ -68,7 +68,7 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { go func() { err := xdg.Wait() if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) } }() |