if (!(lesserror instanceof Undefined || lesserror == UniqueTag.NOT_FOUND)) {
String lessErrorString = lessErrorToString(lesserror);
LOG.error("A LESS compilation error was encountered : " + lessErrorString);
LOG.debug(sanitizeSourceString(source));
throw new LessCompilationException("A LESS compilation error was encountered : " + lessErrorString);
}
if (result instanceof Undefined) {
LOG.error("An undefined result was the product of the LESS compilation.");
throw new LessCompilationException("An undefined result was the product of the LESS compilation.");
}
String resultCss = result.toString();
return resultCss;