fix(cli): mention hyperframes doctor after a browser download failure (#7253)

This commit is contained in:
Mert Kaya
2026-11-23 16:38:03 +00:00
committed by GitHub
parent 18bc914d24
commit de4c73264e
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1809,6 +1809,7 @@ describe("downloadBrowser — install failure surfaces HYPERFRAMES_BROWSER_PATH
expect(caught.message).toContain(rawMsg);
expect(caught.message).toContain("HYPERFRAMES_BROWSER_PATH");
expect(caught.message).toContain("No Chrome or Chromium was found on this machine");
expect(caught.message).toContain("hyperframes doctor");
expect(caught.message).not.toContain('export HYPERFRAMES_BROWSER_PATH="');
expect(caught.message).not.toContain("set HYPERFRAMES_BROWSER_PATH=");
expect(caught.cause).toBe(originalError);
+2 -1
View File
@@ -716,7 +716,8 @@ function wrapDownloadFailureWithBrowserPathHint(
` export HYPERFRAMES_BROWSER_PATH="${installed}"\n\n` +
`Run \`hyperframes doctor\` to see which Chrome was found. Then re-run your command. `
: `No Chrome or Chromium was found on this machine. Install Google Chrome, then set ` +
`HYPERFRAMES_BROWSER_PATH to its executable and re-run your command. `;
`HYPERFRAMES_BROWSER_PATH to its executable. Run \`hyperframes doctor\` to see which ` +
`Chrome was found. Then re-run your command. `;
const message =
`Failed to install chrome-headless-shell ${managedChromeVersion()}: ${original}${unzipErrors}\n\n` +
pointAt +