Skip to content

Commit

Permalink
connection error message less details
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Apr 23, 2024
1 parent a638395 commit 4b3f714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/search/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: Failed to connect to Solr server")

raise SearchError('SOLR returned an error running query: %r Error: %r' %
(query, e))
Expand Down

0 comments on commit 4b3f714

Please sign in to comment.