Better error when bad ref bases are provided
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4414 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
40b2f62a83
commit
490e5e1b0f
|
|
@ -449,7 +449,7 @@ public class VariantContextUtils {
|
|||
if ( ref == null || ref.length() < myRef.length() )
|
||||
ref = myRef;
|
||||
else if ( ref.length() == myRef.length() && ! ref.equals(myRef) )
|
||||
throw new ReviewedStingException("BUG: equal length references with difference bases: "+ ref + " " + myRef);
|
||||
throw new UserException.BadInput(String.format("The provided variant file(s) have inconsistent references for the same position(s) at %s:%d, %s vs. %s", vc.getChr(), vc.getStart(), ref, myRef));
|
||||
}
|
||||
|
||||
return ref;
|
||||
|
|
|
|||
Loading…
Reference in New Issue