We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e8f43 commit 9649853Copy full SHA for 9649853
src/syscall/syscall_windows.go
@@ -142,7 +142,11 @@ func (e Errno) Error() string {
142
return string(utf16.Decode(b[:n]))
143
}
144
145
-const _ERROR_BAD_NETPATH = Errno(53)
+const (
146
+ _ERROR_NOT_SUPPORTED = Errno(50)
147
+ _ERROR_BAD_NETPATH = Errno(53)
148
+ _ERROR_CALL_NOT_IMPLEMENTED = Errno(120)
149
+)
150
151
func (e Errno) Is(target error) bool {
152
switch target {
@@ -162,7 +166,9 @@ func (e Errno) Is(target error) bool {
162
166
e == ERROR_PATH_NOT_FOUND ||
163
167
e == ENOENT
164
168
case errorspkg.ErrUnsupported:
165
- return e == ENOSYS ||
169
+ return e == _ERROR_NOT_SUPPORTED ||
170
+ e == _ERROR_CALL_NOT_IMPLEMENTED ||
171
+ e == ENOSYS ||
172
e == ENOTSUP ||
173
e == EOPNOTSUPP ||
174
e == EWINDOWS
0 commit comments