Nuxt/lib/common/cli/errors.js
2017-12-29 15:16:31 +03:30

15 lines
281 B
JavaScript

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