mirror of
				https://github.com/42wim/matterbridge.git
				synced 2025-10-31 13:57:25 +01:00 
			
		
		
		
	Print list of valid team names when team not found (#390)
This commit is contained in:
		
							parent
							
								
									4b0bc6d0bf
								
							
						
					
					
						commit
						db25ee59c5
					
				| @ -190,7 +190,11 @@ func (m *MMClient) Login() error { | ||||
| 	} | ||||
| 
 | ||||
| 	if m.Team == nil { | ||||
| 		return errors.New("team not found") | ||||
| 		validTeamNames := make([]string, len(m.OtherTeams)) | ||||
| 		for i, t := range m.OtherTeams { | ||||
| 			validTeamNames[i] = t.Team.Name | ||||
| 		} | ||||
| 		return fmt.Errorf("Team '%s' not found in %v", m.Credentials.Team, validTeamNames) | ||||
| 	} | ||||
| 
 | ||||
| 	m.wsConnect() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alec WM
						Alec WM