Do not need to mention the method that is being called in the exception

What is important to tell is that the database configuration could not
be loaded.

Fixes #34296.
上级 4725b2f0
......@@ -191,7 +191,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册