assertthat
Version:
assertthat provides fluent TDD.
15 lines (11 loc) • 352 B
text/typescript
import { makeErrorLessShitty } from '../../types/LessShittyError';
import { prettyPrint } from '../typeAware/prettyPrint';
const prettyPrintError = function (error: Error, depth = 0): string {
const lessShittyError = makeErrorLessShitty({
error
});
return `Error(${prettyPrint(lessShittyError, depth)})`;
};
export {
prettyPrintError
};