diff --git a/validation/severity.rst b/validation/severity.rst
index 9f3142eb8e4..b10d95ec5c0 100644
--- a/validation/severity.rst
+++ b/validation/severity.rst
@@ -155,8 +155,8 @@ so that the severity is added as an additional HTML class:
{%- if errors|length > 0 -%}
{%- for error in errors -%}
- {% if error.cause.constraint.payload.severity is defined %}
- {% set severity = error.cause.constraint.payload.severity %}
+ {% if error.constraint.payload.severity is defined %}
+ {% set severity = error.constraint.payload.severity %}
{% endif %}
- {{ error.message }}
{%- endfor -%}