add test to france connect controller

This commit is contained in:
Tanguy PATTE 2015-10-06 16:47:25 +02:00
parent b979c9df32
commit c57cb5b75d
2 changed files with 7 additions and 5 deletions

View file

@ -25,5 +25,8 @@ class FranceConnectController < ApplicationController
redirect_to(controller: 'users/dossiers', action: :index)
end
rescue Rack::OAuth2::Client::Error => e
Rails.logger.error e.message
redirect_to(new_user_session_path)
end
end