Skip to content

Commit c557442

Browse files
committed
feat: dummy-proofing with recursive err constructor name testing and try/catch
1 parent 263f843 commit c557442

File tree

4 files changed

+251
-198
lines changed

4 files changed

+251
-198
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
## Features
2525

2626
* Detects Node.js DNS errors (e.g. `ETIMEOUT` and `EBADFAMILY`) and sends 408 Client Timeout error
27+
* Detects Mongoose errors and sends 408 Client Timeout error
28+
* Detects common programmer mistakes by detecting errors of TypeError, SyntaxError, ReferenceError, RangeError, URIError, and EvalError and yields generic "Internal Server Error" (only applies to production mode)
2729
* Detects Redis errors (e.g. ioredis' MaxRetriesPerRequestError) and sends 408 Client Timeout error
2830
* Uses [Boom][boom] for making error messages beautiful (see [User Friendly Responses](#user-friendly-responses) below)
2931
* Simply a better error handler (doesn't remove all headers [like the built-in one does][gh-issue])

0 commit comments

Comments
 (0)