From ca14d44dd17de8e36d2849b643d57c02ee16ae0b Mon Sep 17 00:00:00 2001 From: Silverwizard Date: Tue, 13 Jan 2015 10:46:18 -0500 Subject: [PATCH] Fixed the config to fail more smoothly --- config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")