notmuch: fix bad copy-paste in MsgModifyTags logging
Print "failed to remove tag" instead of "failed to add tag" when
removing tag failed.
Fixes: 5ca6022d00
("lint: ensure errors are at least logged (errcheck)")
Signed-off-by: Julian Pidancet <julian.pidancet@oracle.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
parent
e2f864f2a9
commit
135439b83f
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ func (db *DB) MsgModifyTags(key string, add, remove []string) error {
|
||||||
for _, t := range remove {
|
for _, t := range remove {
|
||||||
err := msg.RemoveTag(t)
|
err := msg.RemoveTag(t)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logging.Warnf("failed to add tag: %v", err)
|
logging.Warnf("failed to remove tag: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue