Skip to content

Error Handler is never raised and error log is not generated ! #16

@Villva-vinoth

Description

@Villva-vinoth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions