ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r743256 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultDependencyDescriptor.java
Date Wed, 11 Feb 2009 07:31:30 GMT
Author: maartenc
Date: Wed Feb 11 07:31:29 2009
New Revision: 743256

URL: http://svn.apache.org/viewvc?rev=743256&view=rev
Log:
Improved the error message when adding a dependency in an unknown configuration.

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultDependencyDescriptor.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultDependencyDescriptor.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultDependencyDescriptor.java?rev=743256&r1=743255&r2=743256&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultDependencyDescriptor.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultDependencyDescriptor.java
Wed Feb 11 07:31:29 2009
@@ -428,8 +428,9 @@
         if ((md != null) && !"*".equals(masterConf) && !"%".equals(masterConf))
{
             Configuration config = md.getConfiguration(masterConf);
             if (config == null) {
-                throw new IllegalArgumentException("Configuration '" + masterConf
-                        + "' does not exist in module " + md);
+                throw new IllegalArgumentException("Cannot add dependency '" + revId
+                    + "' to configuration '" + masterConf + "' of module "
+                    + md.getModuleRevisionId() + " because this configuration doesn't exist!");
             }
         }
 



Mime
View raw message