mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: do not show the open error (#23547)
This commit is contained in:
parent
5e0195f7c4
commit
6351630af2
@ -184,8 +184,7 @@ async function openTraceInBrowser(traceUrls: string[], options?: Options) {
|
||||
const { url } = await startTraceViewerServer(traceUrls, options);
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('\nListening on ' + url);
|
||||
// eslint-disable-next-line no-console
|
||||
await open(url, { wait: true }).catch(() => console.log(`Failed to open browser on ${url}`));
|
||||
await open(url, { wait: true }).catch(() => {});
|
||||
}
|
||||
|
||||
class StdinServer {
|
||||
|
||||
@ -164,7 +164,7 @@ export async function showHTMLReport(reportFolder: string | undefined, host: str
|
||||
console.log(colors.cyan(` Serving HTML report at ${url}. Press Ctrl+C to quit.`));
|
||||
if (testId)
|
||||
url += `#?testId=${testId}`;
|
||||
await open(url, { wait: true }).catch(() => console.log(`Failed to open browser on ${url}`));
|
||||
await open(url, { wait: true }).catch(() => {});
|
||||
await new Promise(() => {});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user