Improved error message for healthcheck

This commit is contained in:
Christoph Haas 2021-04-26 23:25:38 +02:00
parent d9e4f7416f
commit d0612d25ea

View file

@ -21,7 +21,7 @@ Healthcheck.configure do |config|
config.add_check :env, -> {
keys = %W(SALSA_OAUTH_KEY SALSA_OAUTH_SECRET)
keys.each do |key|
puts "checking key"
puts "checking for environment variable #{key}"
raise "Env variable #{key} not set" unless ENV.key?(key)
end
}