protected String generateErrorReport(Less4jException error) {
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
ByteArrayOutputStream errContent = new ByteArrayOutputStream();
CommandLinePrint printer = new CommandLinePrint(new PrintStream(outContent), new PrintStream(errContent));
printer.reportErrorsAndWarnings(error, "testCase", lessFile);
String completeErrorReport = errContent.toString();
return completeErrorReport;
}