mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
10 lines
260 B
Go
10 lines
260 B
Go
package notifier
|
|
|
|
import "github.com/grafana/grafana/pkg/apimachinery/errutil"
|
|
|
|
// WithPublicError sets the public message of an errutil error to the error message.
|
|
func WithPublicError(err errutil.Error) error {
|
|
err.PublicMessage = err.Error()
|
|
return err
|
|
}
|