Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 06bd018d3596bc0e6c68e29c380e3013c2365f62 Author: Alec WM <alec@owls.io> Date: Thu Mar 15 20:50:32 2018 +0000 Print list of valid team names when team not found (#390) diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index f539a76..7978791 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -1907 +19011 @@ 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()