diff options
author | Paul Annesley <paul@annesley.cc> | 2014-11-04 13:58:09 -0800 |
---|---|---|
committer | Paul Annesley <paul@annesley.cc> | 2014-11-04 14:20:37 -0800 |
commit | 4bcb0942241fe10d734b9777a61e0e0026cf0d5d (patch) | |
tree | e22e750a447e31fa83a59c82f4bf208014f4f49a /activerecord | |
parent | 502c45a3428b3ce1a9892986d1bba5f8f975fb6d (diff) | |
download | rails-4bcb0942241fe10d734b9777a61e0e0026cf0d5d.tar.gz rails-4bcb0942241fe10d734b9777a61e0e0026cf0d5d.tar.bz2 rails-4bcb0942241fe10d734b9777a61e0e0026cf0d5d.zip |
activerecord: rake db:create shows underlying error message.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/tasks/mysql_database_tasks.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb index d890196f47..eafbb2c249 100644 --- a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb @@ -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 |