Commit a281425
Robert Jackson
Ensure logging of modules that failed to gather telemetry.
Calling `console.error` from within the `page.evaluate` callback logs
the error to puppeteer instances console not the console that is
actually running the codemod process.
This fixes that issue (so the messages actually bubble up now) by
using `page.exposeFunction` which **does** have access to the current
node process.1 parent 94a469a commit a281425
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
0 commit comments