mirror of https://github.com/apache/maven.git
Test for empty value and avoid needless space
This commit is contained in:
parent
ceb08cfa77
commit
8df10f93be
|
@ -149,7 +149,8 @@ public class DefaultExceptionHandler
|
|||
}
|
||||
|
||||
String message = System.lineSeparator()
|
||||
+ "The project " + result.getProjectId() + " (" + result.getPomFile() + ") has "
|
||||
+ "The project " + ( result.getProjectId().isEmpty() ? "" : result.getProjectId() + " " )
|
||||
+ "(" + result.getPomFile() + ") has "
|
||||
+ children.size() + " error" + ( children.size() == 1 ? "" : "s" );
|
||||
|
||||
return new ExceptionSummary( null, message, null, children );
|
||||
|
|
Loading…
Reference in New Issue