mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #17510 from pda/ar-create-database-error-message
rake db:create shows underlying error message.
This commit is contained in:
commit
3dcd1b84dd
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ module ActiveRecord
|
|||
end
|
||||
establish_connection configuration
|
||||
else
|
||||
$stderr.puts error.inspect
|
||||
$stderr.puts "Couldn't create database for #{configuration.inspect}, #{creation_options.inspect}"
|
||||
$stderr.puts "(If you set the charset manually, make sure you have a matching collation)" if configuration['encoding']
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue