From e106cf73d88910966145a0881ef51246b4bd6798 Mon Sep 17 00:00:00 2001 From: aaron Date: Wed, 8 Jul 2009 19:08:19 +0000 Subject: [PATCH] A quick change to provide more verbose output. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1197 348d0f76-0448-11de-a6fe-93d51630548a --- java/src/org/broadinstitute/sting/utils/GenomeLocParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/src/org/broadinstitute/sting/utils/GenomeLocParser.java b/java/src/org/broadinstitute/sting/utils/GenomeLocParser.java index 085193812..76b590dc1 100644 --- a/java/src/org/broadinstitute/sting/utils/GenomeLocParser.java +++ b/java/src/org/broadinstitute/sting/utils/GenomeLocParser.java @@ -522,8 +522,9 @@ public class GenomeLocParser { if (loc.getContigIndex() < 0 || loc.getContigIndex() >= contigInfo.getSequences().size()) { throw new StingException("Genome loc passed in to setStart has a contig index outside the range of our current sequence dictionary"); } - if (start > GenomeLocParser.contigInfo.getSequences().get(loc.getContigIndex()).getSequenceLength()) { - throw new StingException("start value of " + start + " is greater than the contig length, and is not -1."); + int length = GenomeLocParser.contigInfo.getSequences().get(loc.getContigIndex()).getSequenceLength(); + if (start > length) { + throw new StingException("start value of " + start + " is greater than the contig length, and is not -1. (length = " + length + ")."); } return verifyGenomeLoc(new GenomeLoc(loc.getContig(), loc.getContigIndex(), start, loc.getStop())); }