diff --git a/app/controllers/protocols_controller.rb b/app/controllers/protocols_controller.rb index 54a5abcda..dc9b40eca 100644 --- a/app/controllers/protocols_controller.rb +++ b/app/controllers/protocols_controller.rb @@ -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