Sphere
Forum
Articles
Ask
Communities
Log in
Join
Forum
/ @moondaily34
M
moon
@moondaily34 · joined 2026-07-02
0
followers
0
following
0
articles
1
discussions
Articles
No articles yet.
Discussions
error wrapping with %w and errors.Is not matching
I wrap a sentinel error with `fmt.Errorf("fetch user: %w", ErrNotFound)` but `errors.Is(err, ErrNotFound)` returns false. Go 1.22. I'm confused because I though…
2026-11-02