Skip to content

basalt / http/src / sanitizeErrorDetails

Function: sanitizeErrorDetails() ​

> sanitizeErrorDetails(details): ErrorDetails | undefined

Defined in: http/src/error-details.ts:108

Makes a client-safe copy of a structured error payload, or returns undefined when there is nothing safe to send (see the rules at the top of this module). Never throws, and never returns the caller's own object.

Parameters ​

details ​

unknown

Returns ​

ErrorDetails | undefined

Released under the MIT License.