rescue unmeaningful exception from settingslogic if the namespace doesn't exists and replace it with meaningful error message
This commit is contained in:
parent
91756663a7
commit
4b0c45d895
1 changed files with 7 additions and 1 deletions
|
|
@ -42,7 +42,13 @@ HELP
|
|||
Process.exit(1)
|
||||
end
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue