diff --git a/packages/playwright-core/src/utils/processLauncher.ts b/packages/playwright-core/src/utils/processLauncher.ts index 19c6531c6b..3265d55026 100644 --- a/packages/playwright-core/src/utils/processLauncher.ts +++ b/packages/playwright-core/src/utils/processLauncher.ts @@ -215,7 +215,7 @@ export async function launchProcess(options: LaunchProcessOptions): Promise`); - await options.attemptToGracefullyClose().catch((e) => killProcess()); + await options.attemptToGracefullyClose().catch(() => killProcess()); await waitForCleanup; // Ensure the process is dead and we have cleaned up. options.log(`[pid=${spawnedProcess.pid}] `); }