Commit 49090c95 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'sh-add-geo-setup-help' into 'master'

Geo: Add a suggestion to run `make geo-setup` in the development environment

See merge request gitlab-org/gitlab-ee!6244
parents 729a4b58 97fe2f14
......@@ -12,7 +12,9 @@ module Geo
def self.connection
unless ::Gitlab::Geo.geo_database_configured?
raise SecondaryNotConfigured.new('Geo secondary database is not configured')
message = 'Geo secondary database is not configured'
message += "\nIn the GDK root, try running `make geo-setup`" if Rails.env.development?
raise SecondaryNotConfigured.new(message)
end
# Don't call super because LoadBalancing::ActiveRecordProxy will intercept it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment