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

Function FormatRedactableError

errbase/format_error.go:59–61  ·  view source on GitHub ↗

FormatRedactableError formats an error as a safe object. Note that certain verb/flags combinations are currently not supported, and result in a rendering that considers the entire object as unsafe. For example, %q, %#v are not yet supported.

(err error, s redact.SafePrinter, verb rune)

Source from the content-addressed store, hash-verified

57// supported, and result in a rendering that considers the entire
58// object as unsafe. For example, %q, %#v are not yet supported.
59func FormatRedactableError(err error, s redact.SafePrinter, verb rune) {
60 formatErrorInternal(err, s, verb, true /* redactable */)
61}
62
63func init() {
64 // Also inform the redact package of how to print an error

Callers

nothing calls this directly

Calls 1

formatErrorInternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…