Hacker News new | past | comments | ask | show | jobs | submit login
Best Practices for Node.js Error-Handling (toptal.com)
2 points by praveenscience on June 12, 2020 | hide | past | favorite | 1 comment



Looks roughly like how we do it as well with one exception - we don’t crash on “programmer errors” because we don’t maintain any local state in the node process. If all state lives in your DB, Redis, etc. it’s perfectly ok to have a catch all error handler that logs errors, sends it to Sentry, etc.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: