errutil: (Chore) Make PublicError fulfill error (#71945)

pull/71950/head
Kyle Brandt 2 years ago committed by GitHub
parent c99225e5ef
commit ebc6288191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      pkg/util/errutil/errors.go

@ -251,3 +251,8 @@ func (e Error) Public() PublicError {
Extra: e.PublicPayload,
}
}
// Error implements the error interface.
func (p PublicError) Error() string {
return fmt.Sprintf("[%s] %s", p.MessageID, p.Message)
}

Loading…
Cancel
Save