diff --git a/ckan/lib/search/query.py b/ckan/lib/search/query.py index f1f3051f2db..8f4a0443ce9 100644 --- a/ckan/lib/search/query.py +++ b/ckan/lib/search/query.py @@ -470,7 +470,7 @@ def _check_query_parser(param: str, value: Any): raise SearchQueryError('Invalid "sort" parameter') if "Failed to connect to server" in e.args[0]: - raise SolrConnectionError("Connection Error", message=e.args[0]) + raise SolrConnectionError("Connection Error", message="Failed to connect to Solr server") raise SearchError('SOLR returned an error running query: %r Error: %r' % (query, e))