From 7610684e5aeefe028f4e71031da519510e753847 Mon Sep 17 00:00:00 2001 From: skoh-fley Date: Fri, 8 Nov 2013 10:51:08 -0800 Subject: [PATCH] Added error message output to Twitch authentication issues --- app/controllers/user_sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user_sessions_controller.rb index 62db12d..2755e06 100644 --- a/app/controllers/user_sessions_controller.rb +++ b/app/controllers/user_sessions_controller.rb @@ -53,7 +53,7 @@ class UserSessionsController < ApplicationController current_session = UserSession.create(user, remember_me: true) redirect_to root_path, notice: 'Logged in!' else - redirect_to login_path, alert: 'A problem occurred trying to log you in via Twitch. If this keeps happening, please report the error!' + redirect_to login_path, alert: 'A problem occurred trying to log you in via Twitch. The error reported was ' + user.error + '.' end else user.oauth_token = token -- knotmirror 0.0.1