Permalink
Browse files

it does not make sense to warn about a requirement for an array refer…

…ence and then try to use an array reference anyway
  • Loading branch information...
1 parent 2b1499c commit 845aefc358b80f0f7f710ae90eaf38e3707ad263 Chris Fields committed Aug 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Bio/Tree/Node.pm
View
@@ -135,7 +135,7 @@ sub new {
defined $branchlen && $self->branch_length($branchlen);
if( defined $children ) {
if( ref($children) !~ /ARRAY/i ) {
- $self->warn("Must specify a valid ARRAY reference to initialize a Node's Descendents");
+ $self->throw("Must specify a valid ARRAY reference to initialize a Node's Descendents");
}
foreach my $c ( @$children ) {
$self->add_Descendent($c);

0 comments on commit 845aefc

Please sign in to comment.