demarches-normaliennes/app
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
..
assets enlarge procedure title in user dossier 2021-10-29 14:05:49 +02:00
controllers api: return error cause on parse error 2021-11-19 15:15:10 +01:00
dashboards manager: localize dossier enums 2021-05-06 14:41:08 +02:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql add cnaf type de champ 2021-10-12 14:26:40 +02:00
helpers Merge branch 'main' into 6624/etq-instructeur-je-souhaite-supprimer-des-messages-envoyes-par-erreur 2021-11-17 05:41:56 +01:00
javascript fix(champs): save departement info on champ commune 2021-11-17 14:52:47 +03:00
jobs refactor(mail.delay): use simplier implementation using after_action to prevent email delivery with delay 2021-11-16 15:12:05 +01:00
lib add the good retry_on StaleObjectError 2021-11-05 13:32:21 +01:00
mailers clean(CommentaireService): extract soft delete within controller. returning an instance with an error[:base] is not persisted with validation : avoid poluting stuff 2021-11-16 16:13:11 +01:00
models fix(champs): save departement info on champ commune 2021-11-17 14:52:47 +03:00
policies policies: clarify the role of ChampPolicy 2020-06-24 15:42:30 +02:00
schemas add schema validations 2021-09-22 12:08:24 +02:00
serializers modify experts avis controllers, concern and serializer 2021-03-18 11:38:52 +01:00
services clean(CommentaireService): extract soft delete within controller. returning an instance with an error[:base] is not persisted with validation : avoid poluting stuff 2021-11-16 16:13:11 +01:00
validators Add geo json validation 2021-03-11 15:51:09 +01:00
views fix(champs): save departement info on champ commune 2021-11-17 14:52:47 +03:00