Quellcode durchsuchen

show engine errors when no result is returned at all

Noémi Ványi vor 7 Jahren
Ursprung
Commit
bdd9528c6b
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5
    0
      searx/templates/oscar/messages/no_results.html

+ 5
- 0
searx/templates/oscar/messages/no_results.html Datei anzeigen

@@ -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 %}