Skip to content

Commit d10748e

Browse files
committed
Redirect to setup screen is segment db is missing
1 parent f53b0a8 commit d10748e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/controllers/segments/dashboard_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def check_segments_database
102102
missing_names = missing_models.map { |m| m.table_name }
103103
redirect_to segments_setup_db_path, alert: "Missing tables in segments DB: #{missing_names.join(', ')}. Please upload a valid DB." and return
104104
end
105+
rescue SQLite3::CantOpenException => e
106+
redirect_to segments_setup_db_path, alert: "Segments database is missing" and return
105107
end
106108

107109
def segment_modals

0 commit comments

Comments
 (0)