mirror of https://github.com/apache/maven.git
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:
parent
21592f058c
commit
e94fd427f3
|
@ -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." );
|
||||||
message.append( " The retrieval expression was: " ).append( expression );
|
if ( expression != null )
|
||||||
|
{
|
||||||
|
message.append( " The retrieval expression was: " ).append( expression );
|
||||||
|
}
|
||||||
|
|
||||||
return message.toString();
|
return message.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue