Skip to content

Commit

Permalink
internal: also unwrap LinkError
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Aug 13, 2020
1 parent f7b8ad0 commit 7cc848b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func ExtractErrno(err error) linux.Errno {
return ExtractErrno(e.Err)
case *os.SyscallError:
return ExtractErrno(e.Err)
case *os.LinkError:
return ExtractErrno(e.Err)
}

if e := sysErrno(err); e != 0 {
Expand Down

0 comments on commit 7cc848b

Please sign in to comment.