Catch error when failed to make directory in NFS volume plugin

pull/6/head
Kenjiro Nakayama 2016-12-15 16:53:44 +09:00
parent 9eb82fadc4
commit 13660ef701
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,9 @@ func (b *nfsMounter) SetUpAt(dir string, fsGroup *int64) error {
if !notMnt {
return nil
}
os.MkdirAll(dir, 0750)
if err := os.MkdirAll(dir, 0750); err != nil {
return err
}
source := fmt.Sprintf("%s:%s", b.server, b.exportPath)
options := []string{}
if b.readOnly {