diff options
| author | Bryan C. Mills <bcmills@google.com> | 2020-05-13 14:59:29 -0400 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2020-08-25 04:39:40 +0000 |
| commit | b3d9cf7a07518020c6ec5032474aafef9345cdd5 (patch) | |
| tree | a7ca759dbce7213fb26fee728e91f9f8714d75ea /src/encoding | |
| parent | c78d215ce38288afe382d38af11b6692ce44c368 (diff) | |
| download | go-b3d9cf7a07518020c6ec5032474aafef9345cdd5.tar.xz | |
os: return a *PathError from Readdirnames and Readdir on POSIX platforms
Previously, Readdirnames returned a *PathError on Windows and Plan 9,
but a *SyscallError on POSIX systems.
In contrast, similar methods (such as Stat) return a *PathError on all platforms.
Fixes #38923
Change-Id: I26395905b1e723933f07b792c7aeee7c335949cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/233917
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
