UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

20 lines (18 loc) 489 B
function sanitise(error) { if (error.response) { return { text: error.response.text, status: error.response.status, headers: error.response.headers, data: error.response.body, message: error.message, stack: error.stack, }; } return { message: error.message, stack: error.stack, }; } export { sanitise as default, sanitise }; //# sourceMappingURL=sanitisedError.js.map