(error: DaemonError)
| 2 | import type { DaemonError } from './kernel/contracts.ts'; |
| 3 | |
| 4 | export function throwDaemonError(error: DaemonError): never { |
| 5 | throw new AppError(toAppErrorCode(error.code), error.message, { |
| 6 | ...(error.details ?? {}), |
| 7 | hint: error.hint, |
| 8 | diagnosticId: error.diagnosticId, |
| 9 | logPath: error.logPath, |
| 10 | }); |
| 11 | } |
no test coverage detected