mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fix error handling
This commit is contained in:
parent
29903f570d
commit
c3ca0156fb
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ module RepositoryRows
|
|||
unassign_repository_rows_from_my_module(@my_module)
|
||||
assign_repository_rows_to_my_module(@my_module)
|
||||
end
|
||||
rescue StandardError => e
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
@errors[e.record.class.name.underscore] = e.record.errors.full_messages
|
||||
raise ActiveRecord::Rollback
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue