Skip to content

Commit f50613b

Browse files
author
lorenzo
committed
Fixing up catching exception
1 parent f8547a5 commit f50613b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/reedelk/file/internal/read/ReadStrategyStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Publisher<byte[]> read(Path path, ReadConfigurationDecorator config) {
7777
String message = FILE_NOT_FOUND.format(path.toString());
7878
sink.error(new NotValidFileException(message));
7979

80-
} catch (Exception exception) {
80+
} catch (Throwable exception) {
8181

8282
if (exception instanceof FileReadException) {
8383
sink.error(exception);

0 commit comments

Comments
 (0)