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
- Apple OAuth2 "Registration Not Complete"...
I'm getting a "Registration Not Complete" error when implementing Apple Sign In OAuth2 on self-hosted Appwrite. Environment: Self-hosted Appwrite (latest), iOS...
- Cannot use Apple Oauth2 in React Native/...
Hi! I've trying to add the Apple sign in feature into my Expo App. I followed the docs, but I still receiving the error "Cannot set 'location.href'". Can someon...
- Deeplinking/hosting apple-app-site-assoc...
I'm trying to implement deeplinking so that after a user logs in, they are redirected to the place in my app I want them to go. As far as I understand, I need a...