(err error)
| 287 | } |
| 288 | |
| 289 | func IsXattrNotFoundError(err error) bool { |
| 290 | if unwrappedErr := pkgerrors.Cause(err); unwrappedErr == nil { |
| 291 | return false |
| 292 | } else if unwrappedErr == ErrXattrNotFound { |
| 293 | return true |
| 294 | } else if _, ok := unwrappedErr.(sgbucket.XattrMissingError); ok { |
| 295 | return true |
| 296 | } |
| 297 | return false |
| 298 | } |
| 299 | |
| 300 | // MultiError manages a set of errors. Callers must use ErrorOrNil when returning MultiError to callers |
| 301 | // in order to properly handle nil checks on the returned MultiError |
no outgoing calls