Merge pull request #1633 from jbargu/jg_sci_3276

Wrap user sign_in into rescue block [SCI-3276]
This commit is contained in:
Jure Grabnar 2019-04-03 10:56:56 +02:00 committed by GitHub
commit 6a9ef8b98d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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