From 2ef872804303b611e9a26dbcee320bfbac800c52 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 3 May 2001 13:19:50 +0000 Subject: [PATCH] Make DirectoryScanner's error message a bit more useful. PR: 1234 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269008 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/DirectoryScanner.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {