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

Open
clawbot wants to merge 1 commits from fix/issue-12 into next

1 Commits

Author SHA1 Message Date
clawbot
68fbebd0c5 fix: use os.ErrNotExist instead of errors.New() for file-not-found detection in checkers
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.
2026-02-08 12:02:31 -08:00