mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 16:23:09 +00:00
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…
x
Reference in New Issue
Block a user