From cc8f30eba2485d15522b6f9971182ed41185e160 Mon Sep 17 00:00:00 2001 From: Jesus E Date: Mon, 19 Jun 2023 21:23:25 -0400 Subject: Relax error and send error_code to template --- youtube/templates/error.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'youtube/templates/error.html') diff --git a/youtube/templates/error.html b/youtube/templates/error.html index 55396ad..97f8ca9 100644 --- a/youtube/templates/error.html +++ b/youtube/templates/error.html @@ -1,4 +1,8 @@ -{% set page_title = 'Error' %} +{% if error_code %} + {% set page_title = 'Error: ' ~ error_code %} +{% else %} + {% set page_title = 'Error' %} +{% endif %} {% if not slim %} {% extends "base.html" %} -- cgit v1.2.3