return errors

Actually return errors for stat and mkdir.
This commit is contained in:
Michael Parker 2020-04-14 22:06:19 -04:00
parent da093e7cf7
commit 9c5855663c

View File

@ -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
}
}