Skip to content

Commit 3cd15b6

Browse files
author
Gary Gregory
committed
Typo in exception message.
1 parent 2c8664b commit 3cd15b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2286,7 +2286,7 @@ public static byte[] toByteArray(final InputStream input, final int size) throws
22862286
}
22872287

22882288
if (offset != size) {
2289-
throw new IOException("Unexpected read size. current: " + offset + ", expected: " + size);
2289+
throw new IOException("Unexpected read size, current: " + offset + ", expected: " + size);
22902290
}
22912291

22922292
return data;

0 commit comments

Comments
 (0)