This question concerns Apple platform Hello,
I don't get how to localize errors returned from AppWrite. The only things present in AppwriteError instance are code and message. The "type" is always nil.
So, if I am not mistaken the only way to provide users with accurate error description is to localize errors based on the "message" property..?
If so, then we will get something like
//... switch error.message { case "Invalid email : please provide valid email": return "something localized" case ...// }
If so, this is not okay. I still hope though that this could be done easily and I did not get how to do that because I am new to AppWrite
Thanks for your help
uhhhhhhhhhh that's weird... type shouldn't be null. Are you catching an AppwriteException? What's your code?
oh shoot...can you create an issue on github? it does look like we're not extracting the type from the response 😬
Ok, I im glad there will be the way to work with errors properly!)
I am going to create an issue, but will it be ok if I just copypast the text from here?
Thank you!
Done!
Recommended threads
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...