final LocationAwareException scriptException = (LocationAwareException) failure;
details.failure = scriptException.getCause();
if (scriptException.getLocation() != null) {
details.location.text(scriptException.getLocation());
}
scriptException.visitReportableCauses(new TreeVisitor<Throwable>() {
int depth;
@Override
public void node(final Throwable node) {
if (node == scriptException) {