diff --git a/src/main/org/apache/tools/ant/DirectoryScanner.java b/src/main/org/apache/tools/ant/DirectoryScanner.java index 6dfd23a54..07d6d6afe 100644 --- a/src/main/org/apache/tools/ant/DirectoryScanner.java +++ b/src/main/org/apache/tools/ant/DirectoryScanner.java @@ -655,10 +655,12 @@ strLoop: throw new IllegalStateException("No basedir set"); } if (!basedir.exists()) { - throw new IllegalStateException("basedir does not exist"); + throw new IllegalStateException("basedir " + basedir + + " does not exist"); } if (!basedir.isDirectory()) { - throw new IllegalStateException("basedir is not a directory"); + throw new IllegalStateException("basedir " + basedir + + " is not a directory"); } if (includes == null) {