Nuxt/lib/common/cli/errors.js

15 lines
281 B
JavaScript
Raw Normal View History

2017-08-05 17:46:39 +00:00
const PrettyError = require('pretty-error')
// Start default instance
const pe = new PrettyError()
2017-08-05 17:46:39 +00:00
// Console error unhandled promises
process.on('unhandledRejection', function (err) {
/* eslint-disable no-console */
console.log(pe.render(err))
})
module.exports = {
pe
}