git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #149 from timothy-spencer/fixredeemcodelogging

fixing code redemption error string logging

commitec036d1005fa2b91491e3bd6dabf3bf92f460c4f authorJoel Speed <Joel.speed@hotmail.co.uk> dateWed 8 May 2019, 17:38 (7 years ago) parent8519e7c1a8bd70
1 file changed+1−1
oauthproxy.go+1−1
oauthproxy.go+1−1
@@ -751,7 +751,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
751751
752752 session, err := p.redeemCode(req.Host, req.Form.Get("code"))
753753 if err != nil {
754− logger.Printf("Error redeeming code during OAuth2 callback: %s ", errorString)
754+ logger.Printf("Error redeeming code during OAuth2 callback: %s ", err.Error())
755755 p.ErrorPage(rw, 500, "Internal Error", "Internal Error")
756756 return
757757 }