Skip to content

Commit a954196

Browse files
authored
fix(cli): mention hyperframes doctor after a browser download failure
1 parent 0a6746e commit a954196

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/cli/src/browser/manager.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,7 @@ describe("downloadBrowser — install failure surfaces HYPERFRAMES_BROWSER_PATH
16231623
expect(caught.message).toContain(rawMsg);
16241624
expect(caught.message).toContain("HYPERFRAMES_BROWSER_PATH");
16251625
expect(caught.message).toContain("No Chrome or Chromium was found on this machine");
1626+
expect(caught.message).toContain("hyperframes doctor");
16261627
expect(caught.message).not.toContain('export HYPERFRAMES_BROWSER_PATH="');
16271628
expect(caught.message).not.toContain("set HYPERFRAMES_BROWSER_PATH=");
16281629
expect(caught.cause).toBe(originalError);

‎packages/cli/src/browser/manager.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,8 @@ function wrapDownloadFailureWithBrowserPathHint(
721721
` export HYPERFRAMES_BROWSER_PATH="${installed}"\n\n` +
722722
`Run \`hyperframes doctor\` to see which Chrome was found. Then re-run your command. `
723723
: `No Chrome or Chromium was found on this machine. Install Google Chrome, then set ` +
724-
`HYPERFRAMES_BROWSER_PATH to its executable and re-run your command. `;
724+
`HYPERFRAMES_BROWSER_PATH to its executable. Run \`hyperframes doctor\` to see which ` +
725+
`Chrome was found. Then re-run your command. `;
725726
const message =
726727
`Failed to install chrome-headless-shell ${managedChromeVersion()}: ${original}${unzipErrors}\n\n` +
727728
pointAt +

0 commit comments

Comments
 (0)