Commit 334cb41a by Bill Oley Committed by GitHub

Move error log in social.go inside err != nil (#27804)

parent 69ba7bff
......@@ -258,8 +258,8 @@ func GetOAuthHttpClient(name string) (*http.Client, error) {
if info.TlsClientCert != "" || info.TlsClientKey != "" {
cert, err := tls.LoadX509KeyPair(info.TlsClientCert, info.TlsClientKey)
logger.Error("Failed to setup TlsClientCert", "oauth", name, "error", err)
if err != nil {
logger.Error("Failed to setup TlsClientCert", "oauth", name, "error", err)
return nil, fmt.Errorf("Failed to setup TlsClientCert")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment