UNPKG

@ganintegrity/gan-error

Version:

an extendable ES6 Error with support for HTTP errors

8 lines (5 loc) 163 B
const GanError = require('./lib/GanError'); if (!process.env.DISABLE_GAN_HTTP_ERRORS) { require('./lib/addHttpErrors')(GanError); } module.exports = GanError;