Skip to content

Commit

Permalink
errors: implement fmt.Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Aug 18, 2016
1 parent a3a4e5b commit c999200
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c999200

Please sign in to comment.