diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-09-14 23:12:32 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-09-14 23:12:32 -0400 |
commit | 03e8bcc242e69413a765619892995c952e1fef06 (patch) | |
tree | 81e1d2e41d65d9e77333b470378b3b8ebdd82fae /activerecord/lib/active_record/tasks | |
parent | 29886d93048a4719872e228894559b477f87a278 (diff) | |
parent | f48dc782167fea0a1f13759ed6596a004dd746f3 (diff) | |
download | rails-03e8bcc242e69413a765619892995c952e1fef06.tar.gz rails-03e8bcc242e69413a765619892995c952e1fef06.tar.bz2 rails-03e8bcc242e69413a765619892995c952e1fef06.zip |
Merge pull request #20848 from deivid-rodriguez/fix_undefined_method_error_on_exception
Fix undefined method error on exception
Diffstat (limited to 'activerecord/lib/active_record/tasks')
-rw-r--r-- | activerecord/lib/active_record/tasks/mysql_database_tasks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb index 673386f0d9..ba5dd0a0d9 100644 --- a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb @@ -23,7 +23,7 @@ module ActiveRecord end rescue error_class => error if error.respond_to?(:errno) && error.errno == ACCESS_DENIED_ERROR - $stdout.print error.error + $stdout.print error.message establish_connection root_configuration_without_database connection.create_database configuration['database'], creation_options if configuration['username'] != 'root' |