MCPcopy
hub / github.com/rclone/rclone / wrap

Function wrap

fs/fserrors/error_test.go:29–37  ·  view source on GitHub ↗

wrap returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message. If err is nil, Wrap returns nil.

(err error, message string)

Source from the content-addressed store, hash-verified

27// at the point Wrap is called, and the supplied message.
28// If err is nil, Wrap returns nil.
29func wrap(err error, message string) error {
30 if err == nil {
31 return nil
32 }
33 return &withMessage{
34 cause: err,
35 msg: message,
36 }
37}
38
39var errUseOfClosedNetworkConnection = errors.New("use of closed network connection")
40

Callers 13

putMethod · 0.85
encryptDataMethod · 0.85
UpdateMethod · 0.85
readerForChunkFunction · 0.85
putCompressMethod · 0.85
checkCompressAndTypeFunction · 0.85
putUncompressMethod · 0.85
putCompressMethod · 0.85
uploadPartMethod · 0.85
TestAccountAccounterFunction · 0.85
TestCauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…