node-errorcatcher
v0.0.2
Published
Handle uncaught errors in NodeJS, and stylize error outputs.
Downloads
8
Maintainers
Readme
errorcatcher
Top-level error handling for NodeJS
Automatically catches missed errors.
"Prettifies" all error outputs.
Used via a simple 'include' and run (operates via side effects):
import { GlobalNodeErrorHandlersSetup } from 'errorcatcher'; GlobalNodeErrorHandlersSetup(); // All errors thrown in the app will now display as clean "PrettyErrors"
prettyErrorFactory
prettyErrorFactory allows creation of your own PrettyError objects whenever needed.
import { prettyErrorFactory } from 'errorcatcher';
(You probably won't need it)