{% macro render_failure(reason, direction="received") %} {% if direction == "sent" %} {% set guidance = reason | sent_failure_guidance %} {% else %} {% set guidance = reason | received_failure_guidance %} {% endif %} {% if guidance %}