Browse files

suppress mysql_config errors

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ff8fe66 commit 2c64b9d1270b0ef468f13152c9acd68e0bb49fd6 @jeremy jeremy committed Oct 17, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails_generator/generators/applications/app/app_generator.rb
View
2 railties/lib/rails_generator/generators/applications/app/app_generator.rb
@@ -11,7 +11,7 @@ def initialize(runtime_args, runtime_options = {})
super
usage if args.empty?
@destination_root = args.shift
- @socket = `mysql_config --socket`.strip
+ @socket = `mysql_config --socket`.strip rescue nil
@socket = '/path/to/your/mysql.sock' if @socket.blank?
end

0 comments on commit 2c64b9d

Please sign in to comment.