From 7cc848b3cdfd46f1a2d5ffcfbd0e790fd869614f Mon Sep 17 00:00:00 2001 From: Chris Koch Date: Thu, 30 Jul 2020 12:10:39 -0700 Subject: [PATCH] internal: also unwrap LinkError Signed-off-by: Chris Koch --- internal/errors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/errors.go b/internal/errors.go index aab5819..92c2d7c 100644 --- a/internal/errors.go +++ b/internal/errors.go @@ -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 {