FormatError formats an error according to s and verb. This is a helper meant for use when implementing the fmt.Formatter interface on custom error objects. If the error implements errors.Formatter, FormatError calls its FormatError method of f with an errors.Printer configured according to s and ve
(err error, s fmt.State, verb rune)
| 48 | // |
| 49 | // Otherwise, its Error() text is printed. |
| 50 | func FormatError(err error, s fmt.State, verb rune) { |
| 51 | formatErrorInternal(err, s, verb, false /* redactableOutput */) |
| 52 | } |
| 53 | |
| 54 | // FormatRedactableError formats an error as a safe object. |
| 55 | // |
searching dependent graphs…