Skip to content

Commit

Permalink
test: warn when inspector process crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchini committed Mar 7, 2020
1 parent 9a2a67b commit 532ba02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/common/inspector-helper.js
Expand Up @@ -344,6 +344,9 @@ class NodeInstance extends EventEmitter {

this._shutdownPromise = new Promise((resolve) => {
this._process.once('exit', (exitCode, signal) => {
if (signal) {
console.error(`[err] child process crashed, signal ${signal}`);
}
resolve({ exitCode, signal });
this._running = false;
});
Expand Down

0 comments on commit 532ba02

Please sign in to comment.