Explorar el Código

[enh] display engine error messages

Adam Tauber hace 7 años
padre
commit
1435ae7e96
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      searx/search.py

+ 4
- 1
searx/search.py Ver fichero

@@ -135,7 +135,10 @@ def search_one_request_safe(engine_name, query, request_params, result_container
135 135
                              .format(engine_name, search_duration, timeout_limit, e))
136 136
             requests_exception = True
137 137
         else:
138
-            result_container.add_unresponsive_engine((engine_name, gettext('unexpected crash')))
138
+            result_container.add_unresponsive_engine((
139
+                engine_name,
140
+                u'{0}: {1}'.format(gettext('unexpected crash'), e),
141
+            ))
139 142
             # others errors
140 143
             logger.exception('engine {0} : exception : {1}'.format(engine_name, e))
141 144