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

This commit is contained in:
Kyle Brandt
2023-07-19 09:52:49 -04:00
committed by GitHub
parent c99225e5ef
commit ebc6288191

View File

@@ -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)
}