From 636bd51b519e22907f3a796c7e7899d40a7a60c9 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 2 Sep 2016 19:34:23 +0100 Subject: [PATCH] Add more descriptive search error message --- views/listing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/listing.html b/views/listing.html index 7bdc4ad..36ff9b1 100644 --- a/views/listing.html +++ b/views/listing.html @@ -3,7 +3,7 @@ {% block main %} {% if error %} -

{{ error.statusMessage }}

+

{{ 'Bad Search Query' if error.statusCode == 400 else error.statusMessage }}

{% else %}

{{ title }}

{% if nodes.length %}