| 64 | export function mapCoreError(info: ErrorInfo): CmdopError { |
| 65 | const code = NAMES[info.code] ?? "internal"; |
| 66 | let details: unknown = info.detailsJson; |
| 67 | if (info.detailsJson) { |
| 68 | try { |
| 69 | details = JSON.parse(info.detailsJson); |
| 70 | } catch { |
| 71 | // Preserve the redacted diagnostic string. |
nothing calls this directly
no outgoing calls
no test coverage detected