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.
|
||
|---|---|---|
| .. | ||
| checker.go | ||