display list of required orgs in github login error

This commit is contained in:
Brad Rydzewski
2015-02-12 15:19:31 -08:00
parent baecced414
commit a5dd61f480

View File

@@ -102,7 +102,7 @@ func (r *GitHub) Authorize(res http.ResponseWriter, req *http.Request) (*model.L
return nil, fmt.Errorf("Could not check org membership. %s", err) return nil, fmt.Errorf("Could not check org membership. %s", err)
} }
if !allowedOrg { if !allowedOrg {
return nil, fmt.Errorf("User does not belong to correct org") return nil, fmt.Errorf("User does not belong to correct org. Must belong to %v", r.Orgs)
} }
} }