How to use the pretty-error.render function in pretty-error

To help you get started, we’ve selected a few pretty-error examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eden-js / cli / lib / eden.js View on Github external
error (e) {
    // log error
    console.log (error.render (e));

    // emit error
    this.emit ('eden:error', e);
  }
github eden-js / cli / lib / eden.js View on Github external
process.on ('unhandledRejection', (e) => {
  // log error
  console.log (error.render (e));
});
process.on ('uncaughtException', (e) => {

pretty-error

See nodejs errors with less clutter

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis