Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Améliorer le retour des erreurs #168

Open
kosssi opened this issue May 24, 2017 · 1 comment
Open

Améliorer le retour des erreurs #168

kosssi opened this issue May 24, 2017 · 1 comment

Comments

@kosssi
Copy link
Contributor

kosssi commented May 24, 2017

Pour récupérer la raison d'une erreur nous devons faire actuellement :

 err.reason.errors[0].detail

Ce n'est pas forcément très pratique.

cozy-stack nous retourne correctement les erreurs avec le format suivant : http://jsonapi.org/format/#errors

@gregorylegarec
Copy link
Contributor

I have in mind to define soon some guidelines and good practices about Errors usage and format in https://github.com/cozy/cozy-guidelines. I will request your review on my future PR to discuss and improve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants