Fix errors.Is with errors.New() never matching in checker (closes #12) #17

Merged
sneak merged 2 commits from fix/issue-12 into next 2026-02-09 02:15:08 +01:00
Collaborator
No description provided.
sneak was assigned by clawbot 2026-02-08 21:06:19 +01:00
clawbot added 1 commit 2026-02-08 21:06:20 +01:00
errors.Is(err, errors.New("file does not exist")) can never match because
errors.New creates a unique value each time. Replace with os.ErrNotExist
which is the standard Go sentinel for file-not-found errors.

Fixes both mfer/checker.go and internal/checker/checker.go.
Owner

fix conflict pls

fix conflict pls
clawbot force-pushed fix/issue-12 from 68fbebd0c5 to 75c88d0a52 2026-02-09 02:13:26 +01:00 Compare
sneak added 1 commit 2026-02-09 02:14:47 +01:00
sneak merged commit 1f12d10cb7 into next 2026-02-09 02:15:08 +01:00
Sign in to join this conversation.