Skip to content

Commit

Permalink
Merge pull request #197 from cakofony/throw_on_failure
Browse files Browse the repository at this point in the history
When InputStream reads fail, propagate the exception
  • Loading branch information
RuedigerMoeller authored Jun 19, 2017
2 parents 469d4c0 + 9488050 commit b7b3410
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public void readNextChunk(InputStream in) {
} else {
fullyRead = true;
}
} catch (Exception iex) {
LOGGER.log(FSTLogger.Level.ERROR, "Failed to read next chunk, assuming fully read", iex);
fullyRead = true;
} catch (IOException e) {
LOGGER.log(FSTLogger.Level.ERROR, "Failed to read next chunk from InputStream", e);
throw new RuntimeException("Failed to read next chunk from InputStream", e);
}
}

Expand Down

0 comments on commit b7b3410

Please sign in to comment.