mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Log PIDs for all subprocess crashes
This commit is contained in:
parent
f66eef5271
commit
e94ba6a848
|
|
@ -125,7 +125,7 @@ export class QueryProcessWrapper<T, U> implements ProcessWrapper {
|
|||
this.process.on('message', (message: string) => {
|
||||
if (message.startsWith('THROW\n')) {
|
||||
const error = new Error();
|
||||
error.stack = message.slice(6);
|
||||
error.stack = `[${this.process.pid}] ${message.slice(6)}`;
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
|
@ -239,7 +239,7 @@ export class StreamProcessWrapper implements ProcessWrapper {
|
|||
this.process.on('message', (message: string) => {
|
||||
if (message.startsWith('THROW\n')) {
|
||||
const error = new Error();
|
||||
error.stack = message.slice(6);
|
||||
error.stack = `[${this.process.pid}] ${message.slice(6)}`;
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user