mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Merge pull request #1486 from okriuchykhin/ok_SCI_3023
Improve error logging in protocol import [SCI-3023]
This commit is contained in:
commit
dc7fdaa191
1 changed files with 4 additions and 2 deletions
|
@ -574,8 +574,10 @@ class ProtocolsController < ApplicationController
|
|||
transaction_error = false
|
||||
Protocol.transaction do
|
||||
begin
|
||||
protocol = import_new_protocol(@protocol_json, @team, @type, current_user)
|
||||
rescue Exception
|
||||
protocol =
|
||||
import_new_protocol(@protocol_json, @team, @type, current_user)
|
||||
rescue StandardError => ex
|
||||
Rails.logger.error ex.message
|
||||
transaction_error = true
|
||||
raise ActiveRecord:: Rollback
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue