Skip to content

Commit

Permalink
avoid panic in case of invalid repons from google
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Mancke committed Aug 17, 2017
1 parent 51f4e57 commit 37d5a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var providerGoogle = Provider{
}

if len(gu.Emails) == 0 {
return model.UserInfo{}, "", fmt.Errorf("invalid google response: no email address returned.", err)
return model.UserInfo{}, "", fmt.Errorf("invalid google response: no email address returned.")
}

return model.UserInfo{
Expand Down

0 comments on commit 37d5a0b

Please sign in to comment.