From 09bbd2c4c3846715fceada347584ca75d058b91a Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Sat, 22 Sep 2012 13:22:27 -0400 Subject: [PATCH] Include exception in VCFWriter when one is found when rethrowing as ReviewedStingException --- .../sting/utils/variantcontext/writer/VCFWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/java/src/org/broadinstitute/sting/utils/variantcontext/writer/VCFWriter.java b/public/java/src/org/broadinstitute/sting/utils/variantcontext/writer/VCFWriter.java index f5306b6da..f2d34fe85 100755 --- a/public/java/src/org/broadinstitute/sting/utils/variantcontext/writer/VCFWriter.java +++ b/public/java/src/org/broadinstitute/sting/utils/variantcontext/writer/VCFWriter.java @@ -250,7 +250,7 @@ class VCFWriter extends IndexingVariantContextWriter { mWriter.write("\n"); mWriter.flush(); // necessary so that writing to an output stream will work } catch (IOException e) { - throw new RuntimeException("Unable to write the VCF object to " + getStreamName()); + throw new RuntimeException("Unable to write the VCF object to " + getStreamName(), e); } }