LOG.error("exitStatus: {}", exitStatus);
String errorMessage = IOUtils.toString(process.getInputStream(), encoding);
// find a way to get rid of escape character found at the end (minor issue)
errorMessage = MessageFormat.format("Error in Typescript: \n{0}",
errorMessage.replace(tempSource.getPath(), resourceUri));
throw new WroRuntimeException(errorMessage).logError();
}
return result;
} catch (final Exception e) {
throw WroRuntimeException.wrap(e);
} finally {