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

Afficher un message d'erreur quand on tente d'ajouter un contact qui n'existe pas #650

Closed
ggrossetie opened this issue Nov 11, 2022 · 1 comment

Comments

@ggrossetie
Copy link
Collaborator

Actuellement, le serveur retourne une 500 et on affiche rien à l'utilisateur :

error

Something wrong happened during: Adding acquintances => 500, Internal Server Error: {"errors":[{"message":"No user found with this email","locations":[{"line":2,"column":3}],"path":["addAcquintance"]}],"data":null}
askGraphQL @ graphQL.js:35
await in askGraphQL (async)
addAcquintance @ AcquintanceService.js:135
graphQL.js:37 Uncaught (in promise) Error: No user found with this email
    at askGraphQL (graphQL.js:37:11)
    at async AcquintanceAddForm.jsx:19:5
@ggrossetie
Copy link
Collaborator Author

Même chose quand on essaie de s'ajouter soit même à la liste des contacts :

Something wrong happened during: Adding acquintances => 500, Internal Server Error: {"errors":[{"message":"Can not add yourself to acquintance","locations":[{"line":2,"column":3}],"path":["addAcquintance"]}],"data":null}
askGraphQL @ graphQL.js:35
await in askGraphQL (async)
addAcquintance @ AcquintanceService.js:135
Uncaught (in promise) Error: Can not add yourself to acquintance
    at askGraphQL (graphQL.js:37:11)
    at async AcquintanceAddForm.jsx:19:5

@lakonis lakonis closed this as completed Feb 19, 2024
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