Commit bd846555 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Die if we can't find any databases for the mentioned release.

parent e745f369
......@@ -156,6 +156,11 @@ foreach my $server (@servers) {
$dbh->disconnect();
} ## end foreach my $server (@servers)
if ( scalar( keys(%databases) ) == 0 ) {
die(sprintf( "Did not find any databases for release %d\n", $release )
);
}
{
my $dsn = sprintf( 'DBI:mysql:host=%s;port=%d;database=%s',
$master, $dbport, 'ensembl_production' );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment