FsError makes an error which can keep a record that it is already counted or not
(err error)
| 342 | // FsError makes an error which can keep a record that it is already counted |
| 343 | // or not |
| 344 | func FsError(err error) error { |
| 345 | if err == nil { |
| 346 | err = errors.New("countable error") |
| 347 | } |
| 348 | return &wrappedCountableError{error: err} |
| 349 | } |
| 350 | |
| 351 | // Cause is a souped up errors.Cause which can unwrap some standard |
| 352 | // library errors too. It returns true if any of the intermediate |
no outgoing calls
searching dependent graphs…