fixing code redemption error string logging

This commit is contained in:
timothy-spencer
2019-05-07 10:47:15 -07:00
parent 8519e7ccae
commit 1a8bd70b46
+1 -1
View File
@@ -751,7 +751,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
session, err := p.redeemCode(req.Host, req.Form.Get("code"))
if err != nil {
logger.Printf("Error redeeming code during OAuth2 callback: %s ", errorString)
logger.Printf("Error redeeming code during OAuth2 callback: %s ", err.Error())
p.ErrorPage(rw, 500, "Internal Error", "Internal Error")
return
}