You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2008/09/19 00:25:24 UTC

svn commit: r696836 - in /ant/ivy/core/branches/2.0.x: CHANGES.txt src/java/org/apache/ivy/util/Configurator.java

Author: maartenc
Date: Thu Sep 18 15:25:24 2008
New Revision: 696836

URL: http://svn.apache.org/viewvc?rev=696836&view=rev
Log:
IMPROVEMENT: Error messages on use of relative paths can be cyrptic (IVY-909)

Modified:
    ant/ivy/core/branches/2.0.x/CHANGES.txt
    ant/ivy/core/branches/2.0.x/src/java/org/apache/ivy/util/Configurator.java

Modified: ant/ivy/core/branches/2.0.x/CHANGES.txt
URL: http://svn.apache.org/viewvc/ant/ivy/core/branches/2.0.x/CHANGES.txt?rev=696836&r1=696835&r2=696836&view=diff
==============================================================================
--- ant/ivy/core/branches/2.0.x/CHANGES.txt (original)
+++ ant/ivy/core/branches/2.0.x/CHANGES.txt Thu Sep 18 15:25:24 2008
@@ -79,6 +79,8 @@
 =====================================
 - DOCUMENTATION: Filesystem resolver: talks about "patterns" but does not mention these must become absolute file paths (IVY-910)
 
+- IMPROVEMENT: Error messages on use of relative paths can be cyrptic (IVY-909)
+
 - FIX: Cannot configure items with java.io.File attributes (IVY-905)
 - FIX: Environment properties in ivy settings are no longer resolved (IVY-907)
 - FIX: Resolve failed on certain proxy environment (IVY-911)

Modified: ant/ivy/core/branches/2.0.x/src/java/org/apache/ivy/util/Configurator.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/branches/2.0.x/src/java/org/apache/ivy/util/Configurator.java?rev=696836&r1=696835&r2=696836&view=diff
==============================================================================
--- ant/ivy/core/branches/2.0.x/src/java/org/apache/ivy/util/Configurator.java (original)
+++ ant/ivy/core/branches/2.0.x/src/java/org/apache/ivy/util/Configurator.java Thu Sep 18 15:25:24 2008
@@ -650,7 +650,7 @@
         } catch (Exception ex) {
             IllegalArgumentException iae = new IllegalArgumentException("impossible to convert "
                     + value + " to " + paramClass + " for setting " + attributeName + " on "
-                    + od.getObject().getClass());
+                    + od.getObject().getClass() + ": " + ex.getMessage());
             iae.initCause(ex);
             throw iae;
         }