mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Improve error loggin in protocol import [SCI-3023]
This commit is contained in:
parent
108d8474f1
commit
3376fd012c
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