Skip to content

Adds Error.toJSON(), so we can easily stringify the error, for example when sending them over websockets

License

Notifications You must be signed in to change notification settings

AVVS/error-tojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

error-tojson

Adds Error.toJSON(), so we can easily stringify the error, for example when sending them over websockets

// just do it before anything else
require('error-tojson');

This package is incompatible with MongoDB native driver. Incompatibility is manifesting as a crash whenever mongo server returns and error. See this PR discussion for more info.

About

Adds Error.toJSON(), so we can easily stringify the error, for example when sending them over websockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published