diff --git a/modules/Bio/EnsEMBL/Feature.pm b/modules/Bio/EnsEMBL/Feature.pm index c770f80bf5c42f7014ffadc5b54fbb3375b15dca..84627b7d4468f5094b2802ee32e39acfc9063741 100644 --- a/modules/Bio/EnsEMBL/Feature.pm +++ b/modules/Bio/EnsEMBL/Feature.pm @@ -140,7 +140,7 @@ sub new { if(defined($start) && defined($end)) { if (($start =~ /\d+/) && ($end =~ /\d+/)) { if($end+1 < $start) { - throw('Start must be less than or equal to end+1'); + throw(sprintf('Start (%d) must be less than or equal to end+1 (%d)', $start, ($end+1))); } } else { throw('Start and end must be integers');