mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: add more information to debug worker early exits (#14499)
References #14498
This commit is contained in:
parent
ad42dac56f
commit
582a18e4dc
@ -503,7 +503,7 @@ class Worker extends EventEmitter {
|
||||
});
|
||||
|
||||
this._ready = new Promise((resolve, reject) => {
|
||||
this.process.once('exit', () => reject(new Error('worker exited before it became ready')));
|
||||
this.process.once('exit', (code, signal) => reject(new Error(`worker exited with code "${code}" and signal "${signal}" before it became ready`)));
|
||||
this.once('ready', () => resolve());
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user