diff --git a/config.rb b/config.rb index a6a6cd1..2e06f1f 100755 --- a/config.rb +++ b/config.rb @@ -9,4 +9,4 @@ print "password: " password = gets print "dbname: " dbname = gets -config.print("my = Mysql.connect('" + hostname.strip + "', '" + username.strip + "', '" + password.strip + "', '" + dbname.strip + "')\n") +config.print("print 'Could not connect to DB' unless $my = Mysql.connect('" + hostname.strip + "', '" + username.strip + "', '" + password.strip + "', '" + dbname.strip + "')\n")