Function
reportErrorRender
(
msg: string,
stack?: string,
src?: string,
line?: number,
col?: number,
path = "/renderer",
)
Source from the content-addressed store, hash-verified
| 51 | }; |
| 52 | |
| 53 | export const reportErrorRender = ( |
| 54 | msg: string, |
| 55 | stack?: string, |
| 56 | src?: string, |
| 57 | line?: number, |
| 58 | col?: number, |
| 59 | path = "/renderer", |
| 60 | ) => { |
| 61 | if (!isPackaged) return; |
| 62 | pending.push({ |
| 63 | et: "error", |
| 64 | path, |
| 65 | did: "renderer", |
| 66 | sid: sessionId, |
| 67 | ts: Date.now(), |
| 68 | type: `app-${AppConfig.version}`, |
| 69 | bid: buildId, |
| 70 | props: { msg, stack, src, line, col }, |
| 71 | }); |
| 72 | schedule(); |
| 73 | }; |
Tested by
no test coverage detected