summaryrefslogtreecommitdiff
path: root/src/os/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/path.go')
-rw-r--r--src/os/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/path.go b/src/os/path.go
index ba43ea3525..df87887b9b 100644
--- a/src/os/path.go
+++ b/src/os/path.go
@@ -22,7 +22,7 @@ func MkdirAll(path string, perm FileMode) error {
if dir.IsDir() {
return nil
}
- return &PathError{"mkdir", path, syscall.ENOTDIR}
+ return &PathError{Op: "mkdir", Path: path, Err: syscall.ENOTDIR}
}
// Slow path: make sure parent exists and then call Mkdir for path.