Skip to content

Commit 464c18c

Browse files
committed
chromium - help detect wrongly set QUARTO_CHROMIUM
Add some more debug output to help detect wrongly set QUARTO_CHROMIUM, and not silently ignore a value. Relates to #11205 diagnostics
1 parent b704165 commit 464c18c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/core/puppeteer.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,16 @@ async function findChrome(): Promise<string | undefined> {
203203
let path;
204204
// First check env var and use this path if specified
205205
const envPath = Deno.env.get("QUARTO_CHROMIUM");
206-
if (envPath && safeExistsSync(envPath)) {
206+
if (envPath) {
207207
debug("[CHROMIUM] Using path specified in QUARTO_CHROMIUM");
208-
debug(`[CHROMIUM] Path: ${envPath}`);
209-
return envPath;
208+
if (safeExistsSync(envPath)) {
209+
debug(`[CHROMIUM] Found at ${envPath}, and will be used.`);
210+
return envPath;
211+
} else {
212+
debug(
213+
`[CHROMIUM] Not found at ${envPath}. Check your environment variable valye. Searching now for another binary.`,
214+
);
215+
}
210216
}
211217
// Otherwise, try to find the path based on OS.
212218
if (Deno.build.os === "darwin") {

0 commit comments

Comments
 (0)