Skip to content

Commit

Permalink
ES | returning real exception
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 1, 2023
1 parent d932549 commit dd165cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def get_facets(self):
try:
facets = faceted_search.execute().facets.to_dict()
except TransportError as ex: # pragma: no cover
raise Http400(detail='Data too large.') from ex
raise Http400(detail=get(ex, 'error') or str(ex)) from ex

return facets

Expand Down

0 comments on commit dd165cd

Please sign in to comment.