瀏覽代碼

[enh] display engine error messages

Adam Tauber 7 年之前
父節點
當前提交
1435ae7e96
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      searx/search.py

+ 4
- 1
searx/search.py 查看文件

135
                              .format(engine_name, search_duration, timeout_limit, e))
135
                              .format(engine_name, search_duration, timeout_limit, e))
136
             requests_exception = True
136
             requests_exception = True
137
         else:
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
             # others errors
142
             # others errors
140
             logger.exception('engine {0} : exception : {1}'.format(engine_name, e))
143
             logger.exception('engine {0} : exception : {1}'.format(engine_name, e))
141
 
144