Skip to content

Commit

Permalink
Merge pull request #147 from ipfs/fix/go-ipfs-6028
Browse files Browse the repository at this point in the history
fix sync error with go1.12 on darwin
  • Loading branch information
Stebalien authored Feb 27, 2019
2 parents 73097b6 + 96c103b commit 2eb1233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/error_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func isErrnoNotSupported(err error) bool {
switch err {
case syscall.EINVAL, syscall.ENOTSUP:
case syscall.EINVAL, syscall.ENOTSUP, syscall.ENOTTY:
return true
}
return false
Expand Down
2 changes: 1 addition & 1 deletion cli/error_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const invalid_file_handle syscall.Errno = 0x6

func isErrnoNotSupported(err error) bool {
switch err {
case syscall.EINVAL, syscall.ENOTSUP, invalid_file_handle:
case syscall.EINVAL, syscall.ENOTSUP, syscall.ENOTTY, invalid_file_handle:
return true
}
return false
Expand Down

0 comments on commit 2eb1233

Please sign in to comment.