Skip to content

Commit 1ee38b5

Browse files
committed
Correctly ignore error wrapping ErrNotSupported
Signed-off-by: Paul "TBBle" Hampson <[email protected]>
1 parent 5ad51c7 commit 1ee38b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

context.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package continuity
1818

1919
import (
2020
"bytes"
21+
"errors"
2122
"fmt"
2223
"io"
2324
"os"
@@ -151,7 +152,7 @@ func (c *context) Resource(p string, fi os.FileInfo) (Resource, error) {
151152
}
152153

153154
base.xattrs, err = c.resolveXAttrs(fp, fi, base)
154-
if err != nil && err != ErrNotSupported {
155+
if err != nil && !errors.Is(err, ErrNotSupported) {
155156
return nil, err
156157
}
157158

0 commit comments

Comments
 (0)