MCPcopy Index your code
hub / github.com/rclone/rclone / FsError

Function FsError

fs/fserrors/error.go:344–349  ·  view source on GitHub ↗

FsError makes an error which can keep a record that it is already counted or not

(err error)

Source from the content-addressed store, hash-verified

342// FsError makes an error which can keep a record that it is already counted
343// or not
344func 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

Callers 4

ErrorMethod · 0.92
TestMaxTransferFunction · 0.92
reportResultsMethod · 0.92
initFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestMaxTransferFunction · 0.74
initFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…