diff --git a/parser/parser.go b/parser/parser.go index e9bd766..efbe43f 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -163,7 +163,7 @@ func (f *ConfigurationFile) Parse(path string, internal bool) error { break } - if os.IsNotExist(err) { + if errors.Is(err, os.ErrNotExist) { // File doesn't exist, we tried creating it, and same error is returned? Pretty // sure this pathway is impossible, but if not, abort here. if internal {