mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
Merge pull request #1633 from jbargu/jg_sci_3276
Wrap user sign_in into rescue block [SCI-3276]
This commit is contained in:
commit
6a9ef8b98d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue