mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
10 lines
252 B
Go
10 lines
252 B
Go
|
package notifier
|
||
|
|
||
|
import "github.com/grafana/grafana/pkg/util/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
|
||
|
}
|