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 @@ public class DefaultMavenPluginManager
catch ( ComponentConfigurationException e ) catch ( ComponentConfigurationException e )
{ {
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"Unable to parse the created DOM for mojo configuration: " "Unable to parse configuration of mojo " + mojoDescriptor.getId()
+ e.getMessage(), e ); + ": " + e.getMessage(), e );
} }
catch ( ComponentLookupException e ) catch ( ComponentLookupException e )
{ {
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"Unable to retrieve component configurator " + configuratorId "Unable to retrieve component configurator " + configuratorId
+ " for mojo configuration", e ); + " for configuration of mojo " + mojoDescriptor.getId(), e );
} }
catch ( NoClassDefFoundError e ) catch ( NoClassDefFoundError e )
{ {
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
"A required class was missing during mojo configuration: " "A required class was missing during configuration of mojo "
+ e.getMessage(), e ); + mojoDescriptor.getId() + ": " + e.getMessage(), e );
} }
catch ( LinkageError e ) catch ( LinkageError e )
{ {