You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ah...@apache.org on 2006/10/29 02:41:19 UTC

svn commit: r468794 - /maven/maven-1/core/trunk/src/java/org/apache/maven/MavenUtils.java

Author: aheritier
Date: Sat Oct 28 17:41:18 2006
New Revision: 468794

URL: http://svn.apache.org/viewvc?view=rev&rev=468794
Log:
For a JellyException, display the message if there's no cause for this exception

Modified:
    maven/maven-1/core/trunk/src/java/org/apache/maven/MavenUtils.java

Modified: maven/maven-1/core/trunk/src/java/org/apache/maven/MavenUtils.java
URL: http://svn.apache.org/viewvc/maven/maven-1/core/trunk/src/java/org/apache/maven/MavenUtils.java?view=diff&rev=468794&r1=468793&r2=468794
==============================================================================
--- maven/maven-1/core/trunk/src/java/org/apache/maven/MavenUtils.java (original)
+++ maven/maven-1/core/trunk/src/java/org/apache/maven/MavenUtils.java Sat Oct 28 17:41:18 2006
@@ -948,6 +948,10 @@
             if ( localThrowable instanceof JellyException )
             {
                 JellyException jellyEx = (JellyException) localThrowable;
+                if ( jellyEx.getCause() == null )
+                {
+                    LOGGER.error( getMessage( "exception.cause" ) + jellyEx.getReason() );
+                }
                 LOGGER.error( getMessage( "build.jellyException.file", jellyEx.getFileName() ) );
                 LOGGER.error( getMessage( "build.jellyException.element", jellyEx.getElementName() ) );
                 LOGGER.error( getMessage( "build.jellyException.line", Integer.toString( jellyEx.getLineNumber() ) ) );