StringBuilder builder = new StringBuilder("Could not compile less. ");
builder.append(errors.size()).append(" error(s) occurred:\n");
List<Problem> visibleErrors = ArraysUtils.safeSublist(errors, 0, SHOW_ERRORS);
String visibleErrorsStr = problemsPrinter.printErrors(visibleErrors);
builder.append(visibleErrorsStr);
if (errors.size()>SHOW_ERRORS)
builder.append("...\n");