How to use pretty-error

Comprehensive pretty-error code examples:

How to use pretty-error.stop:

8
9
10
11
12
13
14
15
16
17
18
19
module.exports.getOuchInstance = function () {
  if (ouchInstance) {
    return ouchInstance
  }


  pe.stop()


  const Ouch = require('ouch')
  ouchInstance = (new Ouch()).pushHandler(
    new Ouch.handlers.PrettyPageHandler('orange', null, 'sublime')