File tree 3 files changed +2
-1
lines changed
3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ const (
37
37
ERROR_LOCK_VIOLATION syscall.Errno = 33
38
38
ERROR_NOT_SUPPORTED syscall.Errno = 50
39
39
ERROR_CALL_NOT_IMPLEMENTED syscall.Errno = 120
40
- ERROR_INVALID_NAME syscall.Errno = 123
41
40
ERROR_LOCK_FAILED syscall.Errno = 167
42
41
ERROR_NO_TOKEN syscall.Errno = 1008
43
42
ERROR_NO_UNICODE_TRANSLATION syscall.Errno = 1113
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ func (e Errno) Is(target error) bool {
183
183
return e == ERROR_FILE_NOT_FOUND ||
184
184
e == _ERROR_BAD_NETPATH ||
185
185
e == ERROR_PATH_NOT_FOUND ||
186
+ e == ERROR_INVALID_NAME ||
186
187
e == ENOENT
187
188
case errorspkg .ErrUnsupported :
188
189
return e == _ERROR_NOT_SUPPORTED ||
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const (
16
16
ERROR_BROKEN_PIPE Errno = 109
17
17
ERROR_BUFFER_OVERFLOW Errno = 111
18
18
ERROR_INSUFFICIENT_BUFFER Errno = 122
19
+ ERROR_INVALID_NAME Errno = 123
19
20
ERROR_MOD_NOT_FOUND Errno = 126
20
21
ERROR_PROC_NOT_FOUND Errno = 127
21
22
ERROR_DIR_NOT_EMPTY Errno = 145
You can’t perform that action at this time.
0 commit comments