Skip to content

Commit

Permalink
Merged in r2-2655-catching-errors-on-generate-options (pull request #…
Browse files Browse the repository at this point in the history
…6607)

R2-2655 Catching errors on generate options
  • Loading branch information
aespinoza-quoin authored and pnabutovsky committed Nov 21, 2023
2 parents 3bdc77d + 11b2ff1 commit a54cdd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/initializers/generate_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
.rows.flatten.first
count_system_settings.positive? && count_locations.positive? && GenerateLocationFilesService.generate
end
rescue ActiveRecord::NoDatabaseError => e
rescue StandardError => e
Rails.logger.error 'Locations options not generated'
Rails.logger.error e.message
end
end

0 comments on commit a54cdd9

Please sign in to comment.