You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Error handler is middleware func but that does n't call if any error occurs
even the user is create and again with same user name we can't create other user so this case i have found out that the Error log file isnt generated !
May be
in the controller we need to pass
if (!username || !password) {
res.status(400)
throw new Error("All fields are required")
}
i have get the Error logs...
Thanks to davegray ! i really enjoyed lessons
The text was updated successfully, but these errors were encountered:
Hi,
Error handler is middleware func but that does n't call if any error occurs
even the user is create and again with same user name we can't create other user so this case i have found out that the Error log file isnt generated !
May be
in the controller we need to pass
if (!username || !password) {
res.status(400)
throw new Error("All fields are required")
}
i have get the Error logs...
Thanks to davegray ! i really enjoyed lessons
The text was updated successfully, but these errors were encountered: