diff --git a/app/models/app_config.rb b/app/models/app_config.rb index 11a4ef9b3a1a1a4d27767e12a20bf25df322ad57..8d2514ef32bced924814735778706a6f921b3800 100644 --- a/app/models/app_config.rb +++ b/app/models/app_config.rb @@ -42,7 +42,13 @@ HELP Process.exit(1) end - super + begin + super + rescue TypeError + puts "Couldn't find section ''#{self.namespace}' in config/application.yml." + puts "Double check it's there and that you haven't set RAILS_ENV to something weired (check it for typos)" + Process.exit(1) + end if no_cert_file_in_prod? $stderr.puts <<-HELP