Throw formatted errors.
npm install pretty-throw
const prettyThrow = require("pretty-throw");
prettyThrow(new Error("Test error."));
Type: Error
The error to be thrown.
Type: object
Type: boolean
Default: true
Exit the process after displaying the error.