Better error message for --assume_single_sample_reads screw up

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2916 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-03-03 01:03:10 +00:00
parent 104f4f7383
commit 317fac8dff
1 changed files with 5 additions and 1 deletions

View File

@ -205,7 +205,11 @@ public class UnifiedGenotyper extends LocusWalker<VariantCallContext, UnifiedGen
// use multi-sample mode if we have multiple samples or the output type allows it
else {
writer.addMultiSampleCall(value.genotypes, value.variation);
try {
writer.addMultiSampleCall(value.genotypes, value.variation);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException(e.getMessage() + "; this is often caused by using the --assume_single_sample_reads argument with the wrong sample name");
}
}
return sum;