Skip to content
Snippets Groups Projects
Commit 56368a57 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-508: warn if no species.production_name found

parent 9fdc6311
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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