mirror of https://github.com/apache/maven.git
o Polished error reporting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@881305 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0f465258e5
commit
b48f4f4e49
|
@ -114,7 +114,7 @@ public class DefaultBuildPluginManager
|
|||
throw new PluginExecutionException( mojoExecution, project, e );
|
||||
}
|
||||
}
|
||||
catch ( PluginManagerException e )
|
||||
catch ( PluginContainerException e )
|
||||
{
|
||||
throw new PluginExecutionException( mojoExecution, project, e );
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.maven.plugin;
|
|||
|
||||
import org.apache.maven.project.DuplicateArtifactAttachmentException;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
|
||||
public class PluginExecutionException
|
||||
extends PluginManagerException
|
||||
|
@ -72,9 +73,9 @@ public class PluginExecutionException
|
|||
message = "Mojo execution failed";
|
||||
}
|
||||
|
||||
if ( cause != null )
|
||||
if ( cause != null && StringUtils.isNotEmpty( cause.getMessage() ) )
|
||||
{
|
||||
message = ": " + cause.getMessage();
|
||||
message += ": " + cause.getMessage();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue