Better exception message.
@@ -888,7 +888,9 @@ public static Path setReadOnly(final Path path, final boolean readOnly, final Li
permissions.remove(PosixFilePermission.OTHERS_WRITE);
return Files.setPosixFilePermissions(path, permissions);
}
- throw new IOException("No DosFileAttributeView or PosixFileAttributeView for " + path);
+ throw new IOException(
+ String.format("No DosFileAttributeView or PosixFileAttributeView for '%s' (linkOptions=%s)", path,
+ Arrays.toString(linkOptions)));
}
/**
