[Bioperl-guts-l] [14564] bioperl-live/trunk/Bio/Annotation/Collection.pm: minor word wrapping for error message
Christopher John Fields
cjfields at dev.open-bio.org
Thu Feb 28 09:34:38 EST 2008
Revision: 14564
Author: cjfields
Date: 2008-02-28 09:34:38 -0500 (Thu, 28 Feb 2008)
Log Message:
-----------
minor word wrapping for error message
Modified Paths:
--------------
bioperl-live/trunk/Bio/Annotation/Collection.pm
Modified: bioperl-live/trunk/Bio/Annotation/Collection.pm
===================================================================
--- bioperl-live/trunk/Bio/Annotation/Collection.pm 2008-02-28 14:30:27 UTC (rev 14563)
+++ bioperl-live/trunk/Bio/Annotation/Collection.pm 2008-02-28 14:34:38 UTC (rev 14564)
@@ -257,7 +257,7 @@
}
if( !$object->isa("Bio::AnnotationI") ) {
- $self->throw("object must be AnnotationI compliant, otherwise we wont add it!");
+ $self->throw("object must be AnnotationI compliant, otherwise we won't add it!");
}
# ok, now we are ready! If we don't have an archetype, set it
@@ -275,7 +275,9 @@
# this means isa stuff is executed correctly
if( !$self->_typemap()->is_valid($key,$object) ) {
- $self->throw("Object $object was not valid with key $key. If you were adding new keys in, perhaps you want to make use of the archetype method to allow registration to a more basic type");
+ $self->throw("Object $object was not valid with key $key. ".
+ "If you were adding new keys in, perhaps you want to make use\n".
+ "of the archetype method to allow registration to a more basic type");
}
} else {
$self->_typemap->_add_type_map($key,$archetype);
More information about the Bioperl-guts-l
mailing list