mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move error log in social.go inside err != nil (#27804)
This commit is contained in:
parent
69ba7bff82
commit
334cb41a99
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user