Skip to content
Extraits de code Groupes Projets
Valider 4b0c45d8 rédigé par Jonne Hass's avatar Jonne Hass
Parcourir les fichiers

rescue unmeaningful exception from settingslogic if the namespace doesn't...

rescue unmeaningful exception from settingslogic if the namespace doesn't exists and replace it with meaningful error message
parent 91756663
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -42,7 +42,13 @@ HELP ...@@ -42,7 +42,13 @@ HELP
Process.exit(1) Process.exit(1)
end 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? if no_cert_file_in_prod?
$stderr.puts <<-HELP $stderr.puts <<-HELP
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter