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 static String createPluginParameterRequiredMessage( MojoDescriptor mojo,
message.append( "' parameter is required for the execution of the " );
message.append( mojo.getFullGoalName() );
message.append( " mojo and cannot be null." );
message.append( " The retrieval expression was: " ).append( expression );
if ( expression != null )
{
message.append( " The retrieval expression was: " ).append( expression );
}
return message.toString();
}