From a5dd61f4806b83003c4b9b06793107b111d4861d Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 12 Feb 2015 15:19:31 -0800 Subject: [PATCH] display list of required orgs in github login error --- plugin/remote/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/remote/github/github.go b/plugin/remote/github/github.go index ec923203c..88ceb709d 100644 --- a/plugin/remote/github/github.go +++ b/plugin/remote/github/github.go @@ -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) } 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) } }