o Improved error message

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@828642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-10-22 10:29:34 +00:00
parent e85cd0c2c3
commit f7d7cbb6a0
1 changed files with 8 additions and 3 deletions

View File

@ -636,9 +636,14 @@ public class DefaultMavenPluginManager
}
catch ( ComponentConfigurationException e )
{
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"Unable to parse configuration of mojo " + mojoDescriptor.getId()
+ ": " + e.getMessage(), e );
String message = "Unable to parse configuration of mojo " + mojoDescriptor.getId();
if ( e.getFailedConfiguration() != null )
{
message += " for parameter " + e.getFailedConfiguration().getName();
}
message += ": " + e.getMessage();
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), message, e );
}
catch ( ComponentLookupException e )
{