mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com>
18 lines
391 B
Go
18 lines
391 B
Go
package accesscontrol
|
|
|
|
import "fmt"
|
|
|
|
var ErrAddTeamMembershipMigrations = fmt.Errorf("Error migrating team memberships")
|
|
|
|
type ErrUnknownRole struct {
|
|
key string
|
|
}
|
|
|
|
func (e *ErrUnknownRole) Error() string {
|
|
return fmt.Sprintf("%v: Unable to find role in map: %s", ErrAddTeamMembershipMigrations, e.key)
|
|
}
|
|
|
|
func (e *ErrUnknownRole) Unwrap() error {
|
|
return ErrAddTeamMembershipMigrations
|
|
}
|