Skip to content

Commit

Permalink
update with master
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatcuk committed Nov 6, 2022
1 parent de326ac commit 65c0f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func FilepathGlob(pattern string, opts ...GlobOption) (matches []string, err err
if _, err = os.Lstat(pattern); err != nil {
g := newGlob(opts...)
if errors.Is(err, os.ErrNotExist) {
return nil, nil
return nil, g.handlePatternNotExist(true)
}
return nil, g.forwardErrIfFailOnIOErrors(err)
}
Expand Down

0 comments on commit 65c0f86

Please sign in to comment.