aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch
diff options
context:
space:
mode:
authorJulian Pidancet <julian.pidancet@oracle.com>2022-10-26 22:29:08 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-27 21:45:31 +0200
commit135439b83fc5087e7067a040db2fe3ed2da8bb57 (patch)
tree8060647f8731a1edac7a4f97d95a7848ded175ac /worker/notmuch
parente2f864f2a9902fb0ae1f804fe9fad14790a4003d (diff)
downloadaerc-135439b83fc5087e7067a040db2fe3ed2da8bb57.tar.gz
notmuch: fix bad copy-paste in MsgModifyTags logging
Print "failed to remove tag" instead of "failed to add tag" when removing tag failed. Fixes: 5ca6022d007b ("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>
Diffstat (limited to 'worker/notmuch')
-rw-r--r--worker/notmuch/lib/database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/notmuch/lib/database.go b/worker/notmuch/lib/database.go
index 67aaaab5..178a2f4f 100644
--- a/worker/notmuch/lib/database.go
+++ b/worker/notmuch/lib/database.go
@@ -315,7 +315,7 @@ func (db *DB) MsgModifyTags(key string, add, remove []string) error {
for _, t := range remove {
err := msg.RemoveTag(t)
if err != nil {
- logging.Warnf("failed to add tag: %v", err)
+ logging.Warnf("failed to remove tag: %v", err)
}
}
})