if (log.isDebugEnabled()) {
log.debug("node failures");
}
final SubstepExecutionFailure lastFailure = failures.get(failures.size() - 1);
// just notify on the last one in..?
final Throwable lastException = lastFailure.getCause();
context.getNotificationDistributor().onNodeFailed(node, lastException);
// TODO should this have been set earlier...?
node.getResult().setFailed(lastException);
node.getResult().setScreenshot(lastFailure.getScreenshot());
}
}