improve error message if there is no expression

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168220 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-05 00:35:55 +00:00
parent 21592f058c
commit e94fd427f3
1 changed files with 4 additions and 1 deletions

View File

@ -718,7 +718,10 @@ public class DefaultPluginManager
message.append( "' parameter is required for the execution of the " ); message.append( "' parameter is required for the execution of the " );
message.append( mojo.getFullGoalName() ); message.append( mojo.getFullGoalName() );
message.append( " mojo and cannot be null." ); message.append( " mojo and cannot be null." );
if ( expression != null )
{
message.append( " The retrieval expression was: " ).append( expression ); message.append( " The retrieval expression was: " ).append( expression );
}
return message.toString(); return message.toString();
} }