Skip to content

Commit 0431c24

Browse files
committed
additional error info removed
1 parent cd67bf7 commit 0431c24

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

os.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44

55
package ess
66

7-
import (
8-
"fmt"
9-
"os"
10-
)
7+
import "os"
118

129
// MkDirAll method creates nested directories with given permission if not exists
1310
func MkDirAll(path string, mode os.FileMode) error {
1411
if _, err := os.Lstat(path); err != nil {
1512
if os.IsNotExist(err) {
1613
if err = os.MkdirAll(path, mode); err != nil {
17-
return fmt.Errorf("unable to create directory '%v': %v", path, err)
14+
return err
1815
}
1916
}
2017
}

0 commit comments

Comments
 (0)