¿Qué está mal en el siguiente código al definir una página de error con Nunjucks?
<html>
<head>
<title>Error</title>
</head>
<body>
<div>
{% if error %}
<p>{{ error }}</p>
{% else %}
<p>Error en la aplicación</p>
{% endif %}
</div>
</body>
</html>