[Jifty-commit] r7242 - jifty/trunk/lib/Jifty/Plugin/SetupWizard/Action
Jifty commits
jifty-commit at lists.jifty.org
Thu Jun 11 16:15:43 EDT 2009
Author: sartak
Date: Thu Jun 11 16:15:43 2009
New Revision: 7242
Modified:
jifty/trunk/lib/Jifty/Plugin/SetupWizard/Action/TestDatabaseConnectivity.pm
Log:
Don't complain about nonexistent database
Modified: jifty/trunk/lib/Jifty/Plugin/SetupWizard/Action/TestDatabaseConnectivity.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SetupWizard/Action/TestDatabaseConnectivity.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/SetupWizard/Action/TestDatabaseConnectivity.pm Thu Jun 11 16:15:43 2009
@@ -58,6 +58,10 @@
};
my $error = $@;
+ # database will be created, so not worth complaining about this
+ $ok = 1 if $error =~ /Connection failed: Unknown database '/
+ || $error =~ /Connection failed: .* database ".*" does not exist/;
+
if (!$ok) {
$error ||= _("No handle created");
warn $error;
More information about the Jifty-commit
mailing list