More informative IO error for FASTQ reader #865

Merged
merged 1 commit into from Apr 25, 2017
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -136,7 +136,7 @@ private FastqRecord readNextRecord() {
return frec ;
} catch (IOException e) {
- throw new SAMException(String.format("Error reading fastq '%s'", getAbsolutePath()), e);
+ throw new SAMException(error(e.getMessage()), e);
}
}
@@ -177,7 +177,7 @@ public void close() {
try {
reader.close();
} catch (IOException e) {
- throw new SAMException("IO problem in fastq file " + getAbsolutePath(), e);
+ throw new SAMException(error(e.getMessage()), e);
}
}