Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.switchToOuch = function () {
if (OuchErrorHandler) {
return OuchErrorHandler
}
PrettyError.stop()
const Ouch = require('ouch')
OuchErrorHandler = (new Ouch()).pushHandler(
new Ouch.handlers.PrettyPageHandler('orange', null, 'sublime')
)
return OuchErrorHandler
}