fix: electron launcher (#9504)

Broken-since: #9446
This commit is contained in:
Max Schmitt 2021-10-14 16:45:52 +02:00 committed by GitHub
parent 299d3d6074
commit 1c7a7fcf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,7 @@ export class Electron extends SdkObject {
});
const waitForXserverError = new Promise(async (resolve, reject) => {
await waitForLine(progress, launchedProcess, /Unable to open X display/);
throw new Error([
waitForLine(progress, launchedProcess, /Unable to open X display/).then(() => reject(new Error([
'Unable to open X display!',
`================================`,
'Most likely this is because there is no X server available.',
@ -151,7 +150,7 @@ export class Electron extends SdkObject {
"For example: 'xvfb-run npm run test:e2e'",
`================================`,
progress.metadata.log
].join('\n'));
].join('\n')))).catch(() => {});
});
const nodeMatch = await waitForLine(progress, launchedProcess, /^Debugger listening on (ws:\/\/.*)$/);