tests - print main process pid when killing fails

This commit is contained in:
Benjamin Pasero
2021-11-29 13:48:23 +01:00
parent eafeb7d3da
commit 18c6692316
3 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ async function runTestsInBrowser(browserType: BrowserType, endpoint: url.UrlWith
try {
await promisify(kill)(server.pid!);
} catch (error) {
console.error(`Error when killing server process tree: ${error}`);
console.error(`Error when killing server process tree (pid: ${server.pid}): ${error}`);
}
process.exit(code);