mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
tests - print main process pid when killing fails
This commit is contained in:
parent
eafeb7d3da
commit
18c6692316
|
@ -123,7 +123,7 @@ export async function launch(codePath: string | undefined, userDataDir: string,
|
|||
try {
|
||||
await promisify(kill)(electronProcess.pid!);
|
||||
} catch (error) {
|
||||
console.warn(`*** Error tearing down: ${error}`);
|
||||
console.warn(`*** Error tearing down electron client (pid: ${electronProcess.pid}): ${error}`);
|
||||
}
|
||||
|
||||
throw err;
|
||||
|
|
|
@ -290,7 +290,7 @@ async function teardown(server: ChildProcess): Promise<void> {
|
|||
|
||||
return;
|
||||
} catch (error) {
|
||||
console.warn(`Error tearing down server: ${error} (attempt: ${retries})`);
|
||||
console.warn(`Error tearing down server (pid: ${server.pid}, attempt: ${retries}): ${error}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue