demarches-normaliennes/app/controllers/api
Pierre de La Morinerie 859a147c49 api: return error cause on parse error
Currently, when a query can't be parsed, the error is:
- logged to Sentry (which is useless to us),
- returned as a generic 'Internal Server Error' (which is useless to the
  user who made the query).

With this commit, the error is instead ignored from our logs (because it
is a user error), but the parse error details are returned to the user,
with the following format:

> {'errors': [{'message': 'Parse error on ")" (RPAREN) at [3, 23]'}]}
2021-11-19 15:15:10 +01:00
..
v1 [GraphQL] Add more filters to dossiers 2019-11-07 22:07:42 +01:00
v2 api: return error cause on parse error 2021-11-19 15:15:10 +01:00
pays_controller.rb fix(i18n): add Kosovo to countries list 2021-09-08 12:11:25 +02:00