Correctly detect not exist error
This commit is contained in:
parent
891e5baa27
commit
fff9a89ebb
|
@ -163,7 +163,7 @@ func (f *ConfigurationFile) Parse(path string, internal bool) error {
|
||||||
break
|
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
|
// File doesn't exist, we tried creating it, and same error is returned? Pretty
|
||||||
// sure this pathway is impossible, but if not, abort here.
|
// sure this pathway is impossible, but if not, abort here.
|
||||||
if internal {
|
if internal {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user