details.resolution.text(" option to get the full (very verbose) stacktrace.");
}
}
if (failure instanceof LocationAwareException) {
LocationAwareException scriptException = (LocationAwareException) failure;
if (scriptException.getLocation() != null) {
details.location.text(scriptException.getLocation());
}
details.details.text(scriptException.getOriginalMessage());
for (Throwable cause : scriptException.getReportableCauses()) {
details.details.format("%nCause: %s", getMessage(cause));
}
} else {
details.details.text(getMessage(failure));
}