errors: implement fmt.Formatter
This commit is contained in:
parent
a3a4e5b78e
commit
c99920070c
@ -86,8 +86,10 @@ func Wrapf(err error, format string, args ...interface{}) error {
|
||||
}
|
||||
|
||||
type errorWithCause interface {
|
||||
Error() string
|
||||
Cause() error
|
||||
StackTrace() errors.StackTrace
|
||||
error
|
||||
fmt.Formatter
|
||||
}
|
||||
|
||||
func parentOf(err error) error {
|
||||
|
Loading…
Reference in New Issue
Block a user