From 56368a572b28c8e2296e3442343caeec6046f3d4 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Wed, 12 Jun 2013 13:16:14 +0000 Subject: [PATCH] ENSCORESW-508: warn if no species.production_name found --- modules/Bio/EnsEMBL/Utils/CliHelper.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/Bio/EnsEMBL/Utils/CliHelper.pm b/modules/Bio/EnsEMBL/Utils/CliHelper.pm index b4a62b0006..6249b8267e 100644 --- a/modules/Bio/EnsEMBL/Utils/CliHelper.pm +++ b/modules/Bio/EnsEMBL/Utils/CliHelper.pm @@ -202,6 +202,9 @@ sub get_dba_args_for_opts { ->execute( "SELECT species_id,meta_value FROM $dbname.meta WHERE meta_key='species.production_name'" ); + if ( scalar( @{$species_ids} ) == 0 ) { + croak "No species.production_name found in database"; + } if ( scalar( @{$species_ids} ) > 1 ) { $multi = 1; } -- GitLab