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)
| 221 | // |
| 222 | // Otherwise, its Error() text is printed. |
| 223 | func FormatError(err error, s fmt.State, verb rune) { errbase.FormatError(err, s, verb) } |
| 224 | |
| 225 | // Formattable wraps an error into a fmt.Formatter which |
| 226 | // will provide "smart" formatting even if the outer layer |
no test coverage detected
searching dependent graphs…