How to get better errors?

On line 44 in the image, there is an error where I compared the userTable to the storedToken instead of the emailVerificationTokenTable. Since this would never work, shouldn't the error be more clear? The error it throws says that the column user.id does not exist. Of course, that column does exist, it just doesn't exist on the emailVerificationTokenTable. Is there any way to get errors that reflect this kind of mistake?
1 Reply
SteveS
SteveSOP15mo ago
I guess I'm thinking of if the eq() function could compare types to make sure that they are the same it would be really useful.
Want results from more Discord servers?
Add your server