(
err: Error,
{ type, message, redirectTo }: ErrorData
)
| 23 | } |
| 24 | |
| 25 | export function wrapHandledError( |
| 26 | err: Error, |
| 27 | { type, message, redirectTo }: ErrorData |
| 28 | ): HandledError { |
| 29 | (err as HandledError)[handledErrorSymbol] = { |
| 30 | type, |
| 31 | message, |
| 32 | redirectTo |
| 33 | }; |
| 34 | return err as HandledError; |
| 35 | } |
no outgoing calls
no test coverage detected