Hi, how to change the exception message according to the user locale? Or if that is not possible how to uniquely identify which exception is which so that it can be handled specifically.
For example if the authentication is failed. I want to display custom error message instead of the default "Invalid credentials. Please check the email and password."
AppwriteException: Invalid credentials. Please check the email and password. at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=30fb1690:850:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=30fb1690:488:24)
And in some other scenario like changing the user email where the password is required, if incorrect password provided instead of showing " Invalid credentials. Please check the email and password." message I want to show custom error message to explain to the user why the action is failing.
Thanks.
Recommended threads
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...