mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
15 lines
281 B
JavaScript
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
|
|
}
|