From 135439b83fc5087e7067a040db2fe3ed2da8bb57 Mon Sep 17 00:00:00 2001 From: Julian Pidancet Date: Wed, 26 Oct 2022 22:29:08 +0200 Subject: 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 Acked-by: Robin Jarry Acked-by: Tim Culverhouse --- worker/notmuch/lib/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker/notmuch') 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) } } }) -- cgit