Fix error message for clarity

This commit is contained in:
Ryan Luckie 2019-07-19 08:59:29 -05:00
parent f537720b52
commit 93cb575d7c
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func (p *OIDCProvider) createSessionState(ctx context.Context, token *oauth2.Tok
email, err := respJSON.Get("email").String()
if err != nil {
return nil, fmt.Errorf("id_token nor userinfo endpoint did not contain an email")
return nil, fmt.Errorf("Neither id_token nor userinfo endpoint contained an email")
}
claims.Email = email