diff --git a/pkg/util/errutil/errors.go b/pkg/util/errutil/errors.go index 1238427c200..09b833acfe5 100644 --- a/pkg/util/errutil/errors.go +++ b/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) +}