Skip to content

Commit

Permalink
fix: log on standalone failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Muller committed Nov 4, 2020
1 parent a69c6cd commit a6710dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/typescript/internal/worker/worker_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ async function main() {
`Started a new process to perform this action. Your build might be misconfigured, try
--strategy=${MNEMONIC}=worker`);

child.on('exit', code => process.exit(code));
child.on('exit', code => {
if (code !== 0) {
console.error(
`\nStdout from tsc worker:\n\n ${child.stdout.toString().replace(/\n/g, '\n ')}`,
)
console.error(
`\nStderr from tsc worker:\n\n ${child.stderr.toString().replace(/\n/g, '\n ')}`,
)
}
process.exit(code)
});
}
}

Expand Down

0 comments on commit a6710dc

Please sign in to comment.