Fixing formatting on transitive resolution error (again).

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@617669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2008-02-01 21:57:26 +00:00
parent c9d88e6ce3
commit e86a507c5d
1 changed files with 8 additions and 3 deletions

View File

@ -621,9 +621,14 @@ public class DefaultCoreErrorReporter
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 ),