o Improved error messages

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@810954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-03 14:10:23 +00:00
parent 07f5ea260a
commit d7e8f29509
1 changed files with 5 additions and 5 deletions

View File

@ -544,20 +544,20 @@ private void populatePluginFields( Object mojo, MojoDescriptor mojoDescriptor, C
catch ( ComponentConfigurationException e )
{
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"Unable to parse the created DOM for mojo configuration: "
+ e.getMessage(), e );
"Unable to parse configuration of mojo " + mojoDescriptor.getId()
+ ": " + e.getMessage(), e );
}
catch ( ComponentLookupException e )
{
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"Unable to retrieve component configurator " + configuratorId
+ " for mojo configuration", e );
+ " for configuration of mojo " + mojoDescriptor.getId(), e );
}
catch ( NoClassDefFoundError e )
{
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"A required class was missing during mojo configuration: "
+ e.getMessage(), e );
"A required class was missing during configuration of mojo "
+ mojoDescriptor.getId() + ": " + e.getMessage(), e );
}
catch ( LinkageError e )
{