diff --git a/server/handlers.go b/server/handlers.go index b5c7886c..9bff36ee 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -373,7 +373,7 @@ func (s *Server) handleConnectorLogin(w http.ResponseWriter, r *http.Request) { identity, ok, err := passwordConnector.Login(r.Context(), scopes, username, password) if err != nil { s.logger.Errorf("Failed to login user: %v", err) - s.renderError(w, http.StatusInternalServerError, "Login error.") + s.renderError(w, http.StatusInternalServerError, fmt.Sprintf("Login error: %v", err)) return } if !ok {