We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ef833 commit 61425f2Copy full SHA for 61425f2
railties/lib/rails/application/configuration.rb
@@ -105,6 +105,10 @@ def threadsafe!
105
def database_configuration
106
require 'erb'
107
YAML.load ERB.new(IO.read(paths["config/database"].first)).result
108
+ rescue Psych::SyntaxError => e
109
+ raise "YAML syntax error occurred while parsing #{paths["config/database"].first}. " \
110
+ "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \
111
+ "Error: #{e.message}"
112
end
113
114
def log_level
0 commit comments