summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-12-05 20:38:32 +0100
committerAdam Tauber <asciimoo@gmail.com>2017-12-05 20:38:32 +0100
commit1435ae7e96984eabd1df43095d27f21e5a5d424a (patch)
treea90b3fdaac3f9c8e57765cac947b2c47626c00ca /searx
parent9e79ad4bde008885af69da35893588184dcbf005 (diff)
downloadsearxng-1435ae7e96984eabd1df43095d27f21e5a5d424a.tar.gz
searxng-1435ae7e96984eabd1df43095d27f21e5a5d424a.zip
[enh] display engine error messages
Diffstat (limited to 'searx')
-rw-r--r--searx/search.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py
index 71d20724e..1bfb47260 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -135,7 +135,10 @@ def search_one_request_safe(engine_name, query, request_params, result_container
.format(engine_name, search_duration, timeout_limit, e))
requests_exception = True
else:
- result_container.add_unresponsive_engine((engine_name, gettext('unexpected crash')))
+ result_container.add_unresponsive_engine((
+ engine_name,
+ u'{0}: {1}'.format(gettext('unexpected crash'), e),
+ ))
# others errors
logger.exception('engine {0} : exception : {1}'.format(engine_name, e))