MCPcopy Index your code
hub / github.com/cockroachdb/errors / WithMessagef

Function WithMessagef

errutil_api.go:98–100  ·  view source on GitHub ↗

WithMessagef annotates err with the format specifier. If err is nil, WithMessagef returns nil. The message is formatted as per redact.Sprintf, to separate safe and unsafe strings for Sentry reporting.

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

Source from the content-addressed store, hash-verified

96// The message is formatted as per redact.Sprintf,
97// to separate safe and unsafe strings for Sentry reporting.
98func WithMessagef(err error, format string, args ...interface{}) error {
99 return errutil.WithMessagef(err, format, args...)
100}
101
102// Wrap wraps an error with a message prefix.
103// A stack trace is retained.

Callers

nothing calls this directly

Calls 1

WithMessagefFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…