Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -156,6 +156,11 @@ foreach my $server (@servers) { ...@@ -156,6 +156,11 @@ foreach my $server (@servers) {
$dbh->disconnect(); $dbh->disconnect();
} ## end foreach my $server (@servers) } ## 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', my $dsn = sprintf( 'DBI:mysql:host=%s;port=%d;database=%s',
$master, $dbport, 'ensembl_production' ); $master, $dbport, 'ensembl_production' );
......
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