diff options
Diffstat (limited to 'app/controllers/auth_sources_controller.rb')
-rw-r--r-- | app/controllers/auth_sources_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb index 86b58d365..b830f1970 100644 --- a/app/controllers/auth_sources_controller.rb +++ b/app/controllers/auth_sources_controller.rb @@ -65,10 +65,10 @@ class AuthSourcesController < ApplicationController @auth_method = AuthSource.find(params[:id]) begin @auth_method.test_connection + flash[:notice] = l(:notice_successful_connection) rescue => text - flash[:notice] = text + flash[:error] = "Unable to connect (#{text})" end - flash[:notice] ||= l(:notice_successful_connection) redirect_to :action => 'list' end |