MCPcopy
hub / github.com/git-lfs/git-lfs / Wrap

Function Wrap

errors/errors.go:73–75  ·  view source on GitHub ↗

Wrap wraps an error with an additional message.

(err error, msg string)

Source from the content-addressed store, hash-verified

71
72// Wrap wraps an error with an additional message.
73func Wrap(err error, msg string) error {
74 return newWrappedError(err, msg)
75}
76
77// Wrapf wraps an error with an additional formatted message.
78func Wrapf(err error, format string, args ...interface{}) error {

Callers 15

ExpandPathFunction · 0.92
SpoolFunction · 0.92
SetupFileCacheMethod · 0.92
LockFileMethod · 0.92
UnlockFileByIdMethod · 0.92
searchRemoteLocksMethod · 0.92
prepareCacheDirectoryMethod · 0.92
ScanMethod · 0.92
SmudgeToFileMethod · 0.92
downloadFileMethod · 0.92
downloadFileFallBackMethod · 0.92
readLocalFileMethod · 0.92

Calls 1

newWrappedErrorFunction · 0.85

Tested by

no test coverage detected