From 91820ed9c19684b9a2ec6edd0bfda7b7b20b7fff Mon Sep 17 00:00:00 2001 From: Jure Grabnar Date: Wed, 3 Apr 2019 09:09:20 +0200 Subject: [PATCH] Wrap sign_in user into begin/rescue block Closes SCI-3276 --- app/controllers/users/sessions_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index a7b3a4496..6f0f86d60 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -24,6 +24,11 @@ class Users::SessionsController < Devise::SessionsController priority: 10 ).seed_demo_data_with_id(current_user.id, team.id) end + rescue StandardError => e + Rails.logger.fatal( + "User ID #{current_user.id}: Error creating inital projects on sign_in: "\ + "#{e.message}" + ) end # DELETE /resource/sign_out