Log PIDs for all subprocess crashes

This commit is contained in:
Mia 2025-11-23 20:00:07 -06:00
parent f66eef5271
commit e94ba6a848

View File

@ -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;
}