Skip to content

Commit 2eb1233

Browse files
authored
Merge pull request #147 from ipfs/fix/go-ipfs-6028
fix sync error with go1.12 on darwin
2 parents 73097b6 + 96c103b commit 2eb1233

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/error_posix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
func isErrnoNotSupported(err error) bool {
1010
switch err {
11-
case syscall.EINVAL, syscall.ENOTSUP:
11+
case syscall.EINVAL, syscall.ENOTSUP, syscall.ENOTTY:
1212
return true
1313
}
1414
return false

cli/error_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const invalid_file_handle syscall.Errno = 0x6
1010

1111
func isErrnoNotSupported(err error) bool {
1212
switch err {
13-
case syscall.EINVAL, syscall.ENOTSUP, invalid_file_handle:
13+
case syscall.EINVAL, syscall.ENOTSUP, syscall.ENOTTY, invalid_file_handle:
1414
return true
1515
}
1616
return false

0 commit comments

Comments
 (0)