os-util.go: corretta l'iniziale dei mesaggi d'errore (dev'essere minuscola)
This commit is contained in:
parent
49c3087114
commit
90510128c4
@ -132,7 +132,7 @@ func MakeParentDir(filePath string) (dir string, err error) {
|
|||||||
dir = filepath.Dir(filePath)
|
dir = filepath.Dir(filePath)
|
||||||
if !IsDirectory(dir) {
|
if !IsDirectory(dir) {
|
||||||
if err1 := os.MkdirAll(dir, 0755); err1 != nil {
|
if err1 := os.MkdirAll(dir, 0755); err1 != nil {
|
||||||
err = fmt.Errorf("Can't make parent path of %#v: %v", filePath, err1)
|
err = fmt.Errorf("can't make parent path of %#v: %v", filePath, err1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
@ -157,7 +157,7 @@ func ExpandFilePathAndMakeParentV(specPath string, maps ...map[string]string) (e
|
|||||||
func MakeDir(dirPath string) (err error) {
|
func MakeDir(dirPath string) (err error) {
|
||||||
if !IsDirectory(dirPath) {
|
if !IsDirectory(dirPath) {
|
||||||
if err1 := os.MkdirAll(dirPath, 0755); err1 != nil {
|
if err1 := os.MkdirAll(dirPath, 0755); err1 != nil {
|
||||||
err = fmt.Errorf("Can't make directory path %#v: %v", dirPath, err1)
|
err = fmt.Errorf("can't make directory path %#v: %v", dirPath, err1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user