UNPKG

assertthat

Version:
13 lines (12 loc) 514 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.prettyPrintError = void 0; const LessShittyError_1 = require("../../types/LessShittyError"); const prettyPrint_1 = require("../typeAware/prettyPrint"); const prettyPrintError = function (error, depth = 0) { const lessShittyError = (0, LessShittyError_1.makeErrorLessShitty)({ error }); return `Error(${(0, prettyPrint_1.prettyPrint)(lessShittyError, depth)})`; }; exports.prettyPrintError = prettyPrintError;