Improve error message on verification of auth code
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
4511657daa
commit
105db3fbc4
|
@ -183,7 +183,7 @@ func verifyAuthCode(code, redirectURI, authEndpoint, clientID string) (bool, *au
|
|||
var authResponse authResponse
|
||||
err = dec.Decode(&authResponse)
|
||||
if err != nil {
|
||||
return false, nil, err
|
||||
return false, nil, fmt.Errorf("while verifying authentication response from %s: %s", authEndpoint, err)
|
||||
}
|
||||
|
||||
return true, &authResponse, nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user