Include exception in VCFWriter when one is found when rethrowing as ReviewedStingException

This commit is contained in:
Mark DePristo 2012-09-22 13:22:27 -04:00
parent 10a6b57be6
commit 09bbd2c4c3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}