mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-28 19:30:30 +00:00
display list of required orgs in github login error
This commit is contained in:
parent
baecced414
commit
a5dd61f480
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue