Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add file name to FileTruncatedException message #747
Comments
ronlevine
self-assigned this
Nov 21, 2016
|
Closing since #750 is merged. |
ronlevine
closed this
Nov 23, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ronlevine commentedNov 21, 2016
•
edited
Verify
Look at broadinstitute/gsa-unstable#1427.
For HTSJDK, create a test that that catches the
FileTruncatedExceptionfrom reading a truncatedvcf.gzfile and verify the exception message isPremature end of file. testBasicWriteAndRead is a good starting point for creating a test.Subject of the issue
Reading a truncated vcf.gz file needs a more informative error message.
Refer to broadinstitute/gsa-unstable#1427.
Your environment
Steps to reproduce
Tell us how to reproduce this issue. If possible, include a short code snippet to demonstrate the problem.
Expected behaviour
Exception message:
Premature end of FILENAME.where FILENAME is the name of the truncated file.Actual behaviour
Exception message:
Premature end of file.