From 756ea1b16adc695e244daf0e7afffb5f883b79f6 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 6 Jun 2024 11:21:21 -0400 Subject: [PATCH] Better exception message --- src/main/java/org/apache/commons/io/file/PathUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/file/PathUtils.java b/src/main/java/org/apache/commons/io/file/PathUtils.java index e7fb6f8bfbe..59d06b6772e 100644 --- a/src/main/java/org/apache/commons/io/file/PathUtils.java +++ b/src/main/java/org/apache/commons/io/file/PathUtils.java @@ -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) {