Browse Source

Only show search error on search pages

pm2
Luke Childs 8 years ago
parent
commit
827f0d1d37
  1. 2
      views/listing.html

2
views/listing.html

@ -3,7 +3,7 @@
{% block main %}
{% if error %}
<h2>{{ 'Bad Search Query' if error.statusCode == 400 else error.statusMessage }}</h2>
<h2>{{ 'Bad Search Query' if error.statusCode == 400 and req.query.s else error.statusMessage }}</h2>
{% else %}
<h2>{{ title }}</h2>
{% if nodes.length %}

Loading…
Cancel
Save