Skip to content

Commit

Permalink
Small POD and and error message change
Browse files Browse the repository at this point in the history
  • Loading branch information
fangly committed Jun 25, 2013
1 parent 3317ea1 commit a2b2aa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bio/DB/Taxonomy.pm
Expand Up @@ -192,7 +192,7 @@ sub get_taxonids {
(stored under node_name()) is different. The nodes are also given an (stored under node_name()) is different. The nodes are also given an
arbitrary branch length of 1. arbitrary branch length of 1.
Returns : Bio::Tree::Tree Returns : Bio::Tree::Tree
Args : a list of species names (strings) Args : A list of species names (strings) to include in the tree.
=cut =cut


Expand All @@ -204,7 +204,7 @@ sub get_tree {
for my $name (@species_names) { for my $name (@species_names) {
my @ids = $self->get_taxonids($name); my @ids = $self->get_taxonids($name);
if (not scalar @ids) { if (not scalar @ids) {
$self->throw("No taxonomy database node for species ".$name); $self->throw("Could not find species $name in the taxonomy");
} }
for my $id (@ids) { for my $id (@ids) {
my $node = $self->get_taxon(-taxonid => $id); my $node = $self->get_taxon(-taxonid => $id);
Expand Down

0 comments on commit a2b2aa0

Please sign in to comment.