Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch global error not working #2144

Closed
KingDracula opened this issue Nov 2, 2023 · 1 comment
Closed

catch global error not working #2144

KingDracula opened this issue Nov 2, 2023 · 1 comment

Comments

@KingDracula
Copy link

nodemon -v: 3.0.1
i was add the process catch exception ,when i run it by node it is working ,when i run it by nodemon it is not working ,the node process is restart
process.on('uncaughtException', (error => {
console.error("catch exception", error)
}));
process.on('unhandledRejection', (error => {
console.error("catch exception", error)
}));

@KingDracula
Copy link
Author

was fix it ,my question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant