You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/01/25 12:16:27 UTC

svn commit: r737502 - /maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java

Author: bentmann
Date: Sun Jan 25 11:16:22 2009
New Revision: 737502

URL: http://svn.apache.org/viewvc?rev=737502&view=rev
Log:
[MNG-3975] getArtifact(Artifact artifact, List remoteRepositories) should include Exception in debug log messages.

o Merged from r734502

This is a non-functional change, so shouldn't interfere with the RC process. While it's not a regression, the fix provides valuable diagnostic information to users, allowing them to more easily figure wrong file permissions in their local repository.

Modified:
    maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java

Modified: maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java?rev=737502&r1=737501&r2=737502&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java (original)
+++ maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java Sun Jan 25 11:16:22 2009
@@ -316,13 +316,13 @@
                 // This one we will eat when looking through remote repositories
                 // because we want to cycle through them all before squawking.
 
-                getLogger().debug( "Unable to get resource '" + artifact.getId() + "' from repository " +
+                getLogger().debug( "Unable to find resource '" + artifact.getId() + "' in repository " +
                     repository.getId() + " (" + repository.getUrl() + ")" );
             }
             catch ( TransferFailedException e )
             {
                 getLogger().debug( "Unable to get resource '" + artifact.getId() + "' from repository " +
-                    repository.getId() + " (" + repository.getUrl() + ")" );
+                    repository.getId() + " (" + repository.getUrl() + "): " + e.getMessage() );
             }
         }