mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
babfa2beac
This PR connects the new RBAC authentication service to existing alertmanager API silence endpoints.
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
|
|
}
|