Skip to content

Commit fe6e6f9

Browse files
committed
[IO-348] Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1395139 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3db2deb commit fe6e6f9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The <action> type attribute can be add,update,fix,remove.
4747
<body>
4848
<!-- The release date is the date RC is cut -->
4949
<release version="2.5" date="201?-??-??" description="New features and bug fixes.">
50+
<action issue="IO-348" dev="ggregory" type="add" due-to="plcstpierre">
51+
Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters.
52+
</action>
5053
<action issue="IO-345" dev="ggregory" type="add" due-to="mkresse">
5154
Supply a hook method allowing Tailer actively determining stop condition.
5255
</action>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public static Collection<File> listFiles(
542542
*/
543543
private static void validateListFilesParameters(File directory, IOFileFilter fileFilter) {
544544
if (!directory.isDirectory()) {
545-
throw new IllegalArgumentException("Parameter 'directory' is not a directory");
545+
throw new IllegalArgumentException("Parameter 'directory' is not a directory: " + directory);
546546
}
547547
if (fileFilter == null) {
548548
throw new NullPointerException("Parameter 'fileFilter' is null");

0 commit comments

Comments
 (0)