From ff8b44558e016e67500b68bd3a9e3b2cd63b6c9f Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Tue, 13 Nov 2018 15:44:28 -0800 Subject: [PATCH] Issue #1263 - Render error message provided by connector if user authentication failed --- server/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handlers.go b/server/handlers.go index 1e02998d..acbd19bf 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -386,7 +386,7 @@ func (s *Server) handleConnectorCallback(w http.ResponseWriter, r *http.Request) if err != nil { s.logger.Errorf("Failed to authenticate: %v", err) - s.renderError(w, http.StatusInternalServerError, "Failed to return user's identity.") + s.renderError(w, http.StatusInternalServerError, fmt.Sprintf("Failed to authenticate: %v", err)) return }