https://github.com/node-modules/error-inject/blob/master/index.js