MCPcopy
hub / github.com/rclone/rclone / FatalError

Function FatalError

fs/fserrors/error.go:118–123  ·  view source on GitHub ↗

FatalError makes an error which indicates it is a fatal error and the sync should stop.

(err error)

Source from the content-addressed store, hash-verified

116// FatalError makes an error which indicates it is a fatal error and
117// the sync should stop.
118func FatalError(err error) error {
119 if err == nil {
120 err = errors.New("fatal error")
121 }
122 return wrappedFatalError{err}
123}
124
125func (err wrappedFatalError) Unwrap() error {
126 return err.error

Callers 15

shouldRetryExcludeFunction · 0.92
shouldRetryFunction · 0.92
UpdateMethod · 0.92
shouldRetryMethod · 0.92
CallJSONMethod · 0.92
shouldRetryMethod · 0.92
TokenMethod · 0.92
CommitMethod · 0.92
cmd.goFile · 0.92
accounting.goFile · 0.92
TestStatsErrorFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestStatsErrorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…