From 11b2ff1cda75bc883bf29920609063b2226624e2 Mon Sep 17 00:00:00 2001 From: Alberto Espinoza Date: Tue, 21 Nov 2023 13:52:05 -0600 Subject: [PATCH] R2-2655 Catching errors on generate options --- config/initializers/generate_options.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/generate_options.rb b/config/initializers/generate_options.rb index 198f13d4ed..0db32efcac 100644 --- a/config/initializers/generate_options.rb +++ b/config/initializers/generate_options.rb @@ -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