Not all os/error's handled in syscall.Errno.Is #37627
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, there no changes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Recommendation from https://golang.org/src/syscall/syscall_unix.go?s=2815:2833#L115 , use
errors.Is
, while checking error from syscall. But someos.Err*
, not handled insyscall.Errno.Is
. In the example I try to check foros.ErrInvalid
, and always get false. I think it's little obscure, all errors defined inos/errors.go
need be check.What did you expect to see?
Actual check with:
What did you see instead?
Always false.
The text was updated successfully, but these errors were encountered: