mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 07:44:46 +08:00
Fix hound [SCI-7831]
This commit is contained in:
parent
2fc5772af3
commit
1614e3e52b
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ module ProtocolImporters
|
|||
step.assets << AttachmentsBuilder.generate(step_params.deep_symbolize_keys, user: @user, team: @team)
|
||||
step
|
||||
end
|
||||
rescue ActiveRecord::RecordInvalid => invalid
|
||||
@errors[:protocol] = invalid.record.errors
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
@errors[:protocol] = e.record.errors
|
||||
rescue StandardError => e
|
||||
@errors[:protocol] = e.message
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue