Test for empty value and avoid needless space

This commit is contained in:
Michael Osipov 2021-01-31 19:51:32 +01:00
parent ceb08cfa77
commit 8df10f93be
1 changed files with 2 additions and 1 deletions

View File

@ -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 );