final String compileError = result;
LOG.error("exitStatus: {}", exitStatus);
// find a way to get rid of escape character found at the end (minor issue)
final String errorMessage = MessageFormat.format("Error in CoffeeScript: \n{0}",
compileError.replace(temp.getPath(), resourceUri));
throw new WroRuntimeException(errorMessage);
}
//the result is compiled in the same file
return result;
} catch (final Exception e) {
throw WroRuntimeException.wrap(e);