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
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...
- Realtime Error Invalid query: Syntax err...
I was test driving Self-Hosted Appwrite for my use with Swift IOS apps as a backend while back and after successful trials, I started to move to incorporate int...
- TSL Certificate Issues
Hi Appwrite Discord Community, I got a problem with my Self-Hosted instance. I only want, that I can use my programm with the Appwrite Backend without .selfSig...