commit: bdd9528c6b589a2f55dbde050583bebbba40d898
parent 243d3e4298c93014f37ca6f1f957a60cb09f4ae1
Author: Noémi Ványi <sitbackandwait@gmail.com>
Date: Sat, 15 Jul 2017 17:59:50 +0200
show engine errors when no result is returned at all
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/searx/templates/oscar/messages/no_results.html b/searx/templates/oscar/messages/no_results.html
@@ -2,6 +2,11 @@
{% if unresponsive_engines %}
<div class="alert alert-danger fade in" role="alert">
<p><strong class="lead">{{ icon('remove-sign') }} {{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
+ <p>
+ {% for engine_name, error_type in unresponsive_engines %}
+ {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
+ {% endfor %}
+ </p>
<p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
</div>
{% else %}