Skip to content

Name the browser path in ChromeNotFoundError - #476

Open
Blizzeq wants to merge 1 commit into
plotly:mainfrom
Blizzeq:fix/report-missing-browser-path
Open

Blizzeq wants to merge 1 commit into
plotly:mainfrom
Blizzeq:fix/report-missing-browser-path

Conversation

@Blizzeq

@Blizzeq Blizzeq commented Sep 18, 2026

Copy link
Copy Markdown

Refs #422.

With a wrong BROWSER_PATH (or path=), Kaleido 1.4.0 raises ChromeNotFoundError rather than hanging, but the message only says to install Chrome, which does not help someone who set the path on purpose. The error now starts with the path that was tried, e.g. No browser found at BROWSER_PATH='/nonexistent/chrome'., followed by the existing install hint.

Two tests cover path= and BROWSER_PATH. The env var test hides the downloaded Chrome, since that one takes precedence over BROWSER_PATH. Full suite passes locally on macOS.

When the user points Kaleido at a browser with path= or BROWSER_PATH and nothing is there, the error only told them to install Chrome. Now it names the path that was tried.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant