diff --git a/src/main/org/apache/tools/ant/launch/Locator.java b/src/main/org/apache/tools/ant/launch/Locator.java index 071b844c4..c9951e494 100644 --- a/src/main/org/apache/tools/ant/launch/Locator.java +++ b/src/main/org/apache/tools/ant/launch/Locator.java @@ -138,8 +138,10 @@ public final class Locator { try { path = decodeUri(uri); } catch (UnsupportedEncodingException exc) { - // not sure whether this is clean, but this method is declared not to throw exceptions. - throw new IllegalStateException("Could not convert URI to path", exc); + // not sure whether this is clean, but this method is + // declared not to throw exceptions. + throw new IllegalStateException("Could not convert URI to path: " + + exc.getMessage()); } return path; }