Skip to content

Commit

Permalink
Better exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 6, 2024
1 parent d29270a commit 756ea1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/io/file/PathUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ public static Path setReadOnly(final Path path, final boolean readOnly, final Li
}
final Path parent = getParent(path);
if (!isPosix(parent, linkOptions)) { // Test parent because we may not the permissions to test the file.
throw new IOException(String.format("DOS or POSIX file operations not available for '%s' %s", path, Arrays.toString(linkOptions)));
throw new IOException(String.format("DOS or POSIX file operations not available for '%s', linkOptions %s", path, Arrays.toString(linkOptions)));
}
// POSIX
if (readOnly) {
Expand Down

0 comments on commit 756ea1b

Please sign in to comment.