Skip to content

Commit

Permalink
More informative error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fangly committed Oct 11, 2011
1 parent 67f2819 commit 278e117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Bio/SeqFeature/Annotated.pm
Expand Up @@ -720,7 +720,7 @@ sub attach_seq {
my ($self, $seq) = @_;

if ( ! ($seq && ref($seq) && $seq->isa("Bio::PrimarySeqI")) ) {
$self->throw("Must attach Bio::PrimarySeqI objects to SeqFeatures");
$self->throw("Must attach Bio::PrimarySeqI objects to SeqFeatures but got an input of type '".ref($seq)."'");
}

$self->{'seq'} = $seq;
Expand Down

0 comments on commit 278e117

Please sign in to comment.