diff --git a/src/os/stat_plan9.go b/src/os/stat_plan9.go index 57227876f1..ddb304fd94 100644 --- a/src/os/stat_plan9.go +++ b/src/os/stat_plan9.go @@ -63,7 +63,7 @@ func dirstat(arg interface{}) (*syscall.Dir, error) { } if n < _BIT16SZ { - return nil, &PathError{"stat", name, syscall.ErrShortStat} + return nil, &PathError{"stat", name, err} } // Pull the real size out of the stat message.