improve error handling

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163629 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-21 04:24:45 +00:00
parent f5bd920140
commit 847e6b8852
1 changed files with 11 additions and 2 deletions

View File

@ -225,9 +225,18 @@ public class DefaultMaven
if ( response.isExecutionFailure() )
{
// TODO: yuck! Revisit when cleaning up the exception handling from the top down
if ( response.getException() instanceof PluginExecutionException )
Throwable exception = response.getException();
if ( exception instanceof PluginExecutionException )
{
logFailure( response, (PluginExecutionException) response.getException() );
if ( exception.getCause() == null )
{
logFailure( response, (PluginExecutionException) exception );
}
else
{
logError( response );
}
}
else
{