MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / Wrapf

Function Wrapf

errors/errors.go:78–86  ·  view source on GitHub ↗

Wrapf wraps an error with an additional formatted message.

(err error, format string, args ...interface{})

Source from the content-addressed store, hash-verified

76
77// Wrapf wraps an error with an additional formatted message.
78func Wrapf(err error, format string, args ...interface{}) error {
79 if err == nil {
80 err = errors.New("")
81 }
82
83 message := fmt.Sprintf(format, args...)
84
85 return newWrappedError(err, message)
86}
87
88func Join(errs ...error) error {
89 return goerrors.Join(errs...)

Callers 2

uploadTransferFunction · 0.92

Calls 1

newWrappedErrorFunction · 0.85

Tested by

no test coverage detected