From 1435ae7e96984eabd1df43095d27f21e5a5d424a Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 5 Dec 2017 20:38:32 +0100 Subject: [PATCH] [enh] display engine error messages --- searx/search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))