notmuch: fix regression in error handling
Fix reggression introduced by70bfcfef42
("lint: work nicely with wrapped errors (errorlint)"). Discovered this because it broke my arec-notmuch config where I have `exclude-tags=deleted`. Queries with `tag:deleted` would now fail with error message saying "Argument was ignored". Fixes:70bfcfef42
("lint: work nicely with wrapped errors (errorlint)") Signed-off-by: Jose Lombera <jose@lombera.dev> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
dcd397f776
commit
8ada3260ab
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ func (db *DB) newQuery(ndb *notmuch.DB, query string) (*notmuch.Query, error) {
|
|||
q.SetSortScheme(notmuch.SORT_OLDEST_FIRST)
|
||||
for _, t := range db.excludedTags {
|
||||
err := q.AddTagExclude(t)
|
||||
if errors.Is(err, notmuch.ErrIgnored) {
|
||||
if err != nil && !errors.Is(err, notmuch.ErrIgnored) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue