Skip to content

Commit

Permalink
fix: return JSON error if search errors
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Jun 10, 2024
1 parent 6cb1a3b commit 359f095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def build_search(for_export, pages, total, resourceinstanceid, load_tiles, user,
append_instance_permission_filter_dsl(user, search_results_object)
except Exception as err:
logger.exception(err)
return JSONErrorResponse(message=str(err))
raise SearchError(str(err))

dsl = search_results_object.pop("query", None)

Expand Down

0 comments on commit 359f095

Please sign in to comment.