demarches-normaliennes/app/controllers/api/v2
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
..
base_controller.rb Add graphql end point 2019-09-24 10:47:21 +02:00
dossiers_controller.rb controllers: use template: rather than file: to render PDFs 2021-03-25 13:24:53 +01:00
graphql_controller.rb api: return error cause on parse error 2021-11-19 15:15:10 +01:00