maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r617669 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java
Date Fri, 01 Feb 2008 21:57:29 GMT
Author: jdcasey
Date: Fri Feb  1 13:57:26 2008
New Revision: 617669

URL: http://svn.apache.org/viewvc?rev=617669&view=rev
Log:
Fixing formatting on transitive resolution error (again).

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java?rev=617669&r1=617668&r2=617669&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java
Fri Feb  1 13:57:26 2008
@@ -621,9 +621,14 @@
         writer.write( NEWLINE );
         writer.write( "Error message: " );
         writer.write( cause.getMessage() );
-        writer.write( NEWLINE );
-        writer.write( "Root error message: " );
-        writer.write( getRootCause( cause ).getMessage() );
+
+        Throwable root = getRootCause( cause );
+        if ( root != cause )
+        {
+            writer.write( NEWLINE );
+            writer.write( "Root error message: " );
+            writer.write( root.getMessage() );
+        }
 
         writeProjectCoordinate( project, writer );
         addTips( CoreErrorTips.getDependencyArtifactResolutionTips( project, scope, cause
),



Mime
View raw message