Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 464 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 464 Bytes

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.