Explorar el Código

show engine errors when no result is returned at all

Noémi Ványi hace 7 años
padre
commit
bdd9528c6b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      searx/templates/oscar/messages/no_results.html

+ 5
- 0
searx/templates/oscar/messages/no_results.html Ver fichero

@@ -2,6 +2,11 @@
2 2
 {% if unresponsive_engines %}
3 3
 <div class="alert alert-danger fade in" role="alert">
4 4
     <p><strong class="lead">{{ icon('remove-sign') }} {{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
5
+    <p>
6
+        {% for engine_name, error_type in unresponsive_engines %}
7
+        {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
8
+        {% endfor %}
9
+    </p>
5 10
     <p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
6 11
 </div>
7 12
 {% else %}