diff options
author | Adam Tauber <asciimoo@gmail.com> | 2017-12-05 20:38:32 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2017-12-05 20:38:32 +0100 |
commit | 1435ae7e96984eabd1df43095d27f21e5a5d424a (patch) | |
tree | a90b3fdaac3f9c8e57765cac947b2c47626c00ca | |
parent | 9e79ad4bde008885af69da35893588184dcbf005 (diff) | |
download | searxng-1435ae7e96984eabd1df43095d27f21e5a5d424a.tar.gz searxng-1435ae7e96984eabd1df43095d27f21e5a5d424a.zip |
[enh] display engine error messages
-rw-r--r-- | searx/search.py | 5 |
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)) |