return errors
Actually return errors for stat and mkdir.
This commit is contained in:
parent
da093e7cf7
commit
9c5855663c
|
@ -357,7 +357,12 @@ func (c *Configuration) EnsureFilePermissions() error {
|
|||
if os.IsNotExist(err) {
|
||||
//
|
||||
if err = os.Mkdir(p, 0755); err != nil {
|
||||
// of we can't make the directory return error
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
// if the error is anything but IsNotExist
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user