| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0ea079b commit af52410
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,9 +80,9 @@ function expectSyncExit(caller, spawnArgs, { | |||
| 80 | 80 | function logAndThrow() { | |
| 81 | 81 | const tag = `[process ${child.pid}]:`; | |
| 82 | 82 | console.error(`${tag} --- stderr ---`); | |
| 83 | - console.error(stderrStr === undefined ? child.stderr.toString() : stderrStr); | ||
| 83 | + console.error(stderrStr === undefined ? (child.stderr?.toString() ?? '') : stderrStr); | ||
| 84 | 84 | console.error(`${tag} --- stdout ---`); | |
| 85 | - console.error(stdoutStr === undefined ? child.stdout.toString() : stdoutStr); | ||
| 85 | + console.error(stdoutStr === undefined ? (child.stdout?.toString() ?? '') : stdoutStr); | ||
| 86 | 86 | console.error(`${tag} status = ${child.status}, signal = ${child.signal}`); | |
| 87 | 87 | ||
| 88 | 88 | const error = new Error(`${failures.join('\n')}`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments