Skip to content

Commit

Permalink
Do not need to mention the method that is being called in the exception
Browse files Browse the repository at this point in the history
What is important to tell is that the database configuration could not
be loaded.

Fixes #34296.
  • Loading branch information
rafaelfranca committed Oct 23, 2018
1 parent 7bd7241 commit 8cdb5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/application/configuration.rb
Expand Up @@ -202,7 +202,7 @@ def database_configuration
"Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \
"Error: #{e.message}"
rescue => e
raise e, "Cannot load `Rails.application.database_configuration`:\n#{e.message}", e.backtrace
raise e, "Cannot load database configuration:\n#{e.message}", e.backtrace
end

def colorize_logging
Expand Down

0 comments on commit 8cdb5df

Please sign in to comment.