mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			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
 | |
| }
 |