summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matterclient/matterclient.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index f539a76d..79787917 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -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()