You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did expect that this example program also prints the two other lines. Also the documentation is a bit misleading since it says "you can test against error values from the os package..." but uses the fs package in the example.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
sudo brctl addbr test
Invalid argument
:this is a syscall.EINVAL error
and nothing more.main.go
What did you expect to see?
According to the syscall Errno docs:
I did expect that this example program also prints the two other lines. Also the documentation is a bit misleading since it says "you can test against error values from the os package..." but uses the fs package in the example.
Furthermore https://golang.org/pkg/io/fs/#pkg-variables states:
and thus I'd expect to be able to check this error also with
errors.Is(err,fs.ErrInvalid)
.What did you see instead?
The program does not print the following two lines:
it only prints:
Maybe this is just a misunderstanding from my side since I'm not a native English speaker. If so I think we should clarify this in the docs.
EDIT:
Related: #37627 refers to #30322 which had no progress for some time and is hard for me to relate to this issue.
The text was updated successfully, but these errors were encountered: