✅ Why doesn't this try catch, catch exception.
I have these two methods, in register I have a try catch but it's not catching the exception thrown in the try block. I'm doing something wrong but I cannot figure it out.
isEmailUsed
is definitely true.
5 Replies
You didn't await
RegisterUser
You're just firing the task off, then immediately returning a success status. You need to await your tasks to make sure they're completedThank you. I'm definitely lacking attention to detail. It happens over and over but it's hard to tell for myself.
If that's it, please be sure to $close the thread
If you have no further questions, please use /close to mark the forum thread as answered
don't ignore compiler warnings