Bracket shuffling to fix a warning in Perl 5.0.x.

This commit is contained in:
ian%hixie.ch 2001-11-10 21:57:07 +00:00
Родитель 2d3f1dc3de
Коммит 7c4f16563f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -276,7 +276,7 @@ sub setupConfigureDatabase {
$self->handle(DBI->connect($self->connectString($helper->setupDatabaseName), $adminUsername, $adminPassword,
{RaiseError => 0, PrintError => 1, AutoCommit => 1, Taint => 1}));
};
$self->assert(not($@), 1, "Could not connect to database: $@");
$self->assert((not $@), 1, "Could not connect to database: $@");
$self->assert($self->handle, 1, 'Failed to connect to database: '.(defined($DBI::errstr) ? $DBI::errstr : 'unknown error'));
# get the helper to do its stuff