mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
errutil: (Chore) Make PublicError fulfill error (#71945)
This commit is contained in:
parent
c99225e5ef
commit
ebc6288191
@ -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…
Reference in New Issue
Block a user