mirror of https://github.com/waku-org/js-waku.git
Handle nim-waku process exit & error
This commit is contained in:
parent
ee0c63eba3
commit
c491b65edc
|
@ -71,6 +71,16 @@ export class NimWaku {
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.process.on('exit', (signal) => {
|
||||||
|
if (signal != 0) {
|
||||||
|
console.log(`nim-waku process exited with ${signal}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
this.process.on('error', (err) => {
|
||||||
|
console.log(`nim-waku process encountered an error: ${err}`);
|
||||||
|
});
|
||||||
|
|
||||||
await this.waitForLog('RPC Server started');
|
await this.waitForLog('RPC Server started');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue