SpiceQA
Questions Tags Users Badges

findById() is not working if pass random id which doesnot exist in database

Parth Tyagi 0
Created Sep 18, 2022 Edited Sep 18, 2022
Viewed 18

i'm doing error handling here by passing random id which does not exist. But instead throwing custom error it is showing 'This site can’t be reached'.

express
Share
0 Answers
Related
Terms of service Privacy policy
Powered by Answer