Browse Source

[enh] display engine error messages

Adam Tauber 7 years ago
parent
commit
1435ae7e96
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      searx/search.py

+ 4
- 1
searx/search.py View File

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