(value: unknown, context: FrontendErrorContext)
| 74 | }; |
| 75 | |
| 76 | const errorFromValue = (value: unknown, context: FrontendErrorContext): Error => { |
| 77 | // oxlint-disable-next-line executor/no-error-constructor -- boundary: a crash-reporting transport only understands built-in Errors; this module is the adapter that produces them |
| 78 | const error = new Error(describeUnknown(value, context)); |
| 79 | error.name = nameFromUnknown(value, context.surface); |
| 80 | return withOriginalCause(error, value); |
| 81 | }; |
| 82 | |
| 83 | const errorFromCause = (cause: Cause.Cause<unknown>, context: FrontendErrorContext): Error => { |
| 84 | // `prettyErrors` is the non-lossy conversion: it renders every reason — |
no test coverage detected