| commit | 5a8631346df5d63d2f6d8ee47e414cfb4bc8156f | [log] [tgz] |
|---|---|---|
| author | Aurélien DEROIDE <34481271+aureliar8@users.noreply.github.com> | Wed Jun 15 23:20:28 2022 +0200 |
| committer | GitHub <noreply@github.com> | Wed Jun 15 23:20:28 2022 +0200 |
| tree | 2444a09b58793c5a0656d3ab9288a98ea95449ed | |
| parent | 060805c9517bd033db3145ab9e2af0d4dbeb31e9 [diff] |
Make *Error implement Unwrap (#66)
diff --git a/xattr.go b/xattr.go index f982da3..8b2b5fe 100644 --- a/xattr.go +++ b/xattr.go
@@ -29,6 +29,8 @@ Err error } +func (e *Error) Unwrap() error { return e.Err } + func (e *Error) Error() (errstr string) { if e.Op != "" { errstr += e.Op