Skip to content

Commit

Permalink
CHOUETTE-3161 Avoid exception when Referential can't be created in Ne…
Browse files Browse the repository at this point in the history
…TEx import
  • Loading branch information
albanpeignier committed May 15, 2024
1 parent aa58264 commit 8b5e19b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/import/netex_generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ def within_referential(&block)

return if referential_builder.valid?

create_message(
# create_message has a strange behavior in this context
messages.build(
criticity: :error,
message_key: 'referential_creation_overlapping_existing_referential_block'
)
self.overlapping_referential_ids = referential_builder.overlapping_referential_ids

raise 'Referential creation overlapping existing referential'
end

def referential_metadata
Expand Down

0 comments on commit 8b5e19b

Please sign in to comment.