Skip to content

Commit

Permalink
Add error listener to child
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueBurger committed Oct 14, 2023
1 parent 6a1bc4c commit c99ecdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Server/test/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export default new class TestUtil {
console.error(`Didn't listen fast enough`);
process.exit(1);
}, 10_000);
console.log(`starting ${this.testName} at port ${this.port}`)
console.log(`starting ${this.testName} at port ${this.port}`);
newProcess.on("error", err => {
console.log(`Cannot spawn burgerpanel in test ${this.testName} due to: ${err}`);
})
await new Promise((r) => {
newProcess.stdout.on("data", m => {
console.log(`${this.testName} | ${m.toString()}`);
Expand Down

0 comments on commit c99ecdd

Please sign in to comment.