diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-12-14 12:20:13 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-12-14 13:51:06 +0100 |
commit | ad2059878a8d6ace9669ccc5ff0a8d4e5811ad37 (patch) | |
tree | 34d88705ab22e5b54949a6ce48e028b1fc2ab7e6 /resources | |
parent | 87e898a17a52b5338bc9d554dd12b99a54aa2431 (diff) |
Also consider wrapped errors when checking for file IsNotExist errors
Fixes #10534
Diffstat (limited to 'resources')
-rw-r--r-- | resources/resource_spec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/resource_spec.go b/resources/resource_spec.go index fd9653012..13920be7e 100644 --- a/resources/resource_spec.go +++ b/resources/resource_spec.go @@ -258,7 +258,7 @@ func (r *Spec) newResource(sourceFs afero.Fs, fd ResourceSourceDescriptor) (reso var err error fi, err = sourceFs.Stat(fd.SourceFilename) if err != nil { - if os.IsNotExist(err) { + if herrors.IsNotExist(err) { return nil, nil } return nil, err |