diff --git a/web/scripts/check-docs.mjs b/web/scripts/check-docs.mjs index 90de4ff68..1a10107a7 100644 --- a/web/scripts/check-docs.mjs +++ b/web/scripts/check-docs.mjs @@ -143,9 +143,11 @@ function main() { for (const s of install.stale) { console.error(` found "${s.found}", expected "${s.expected}" in: ${s.context}`); } - } else { - console.log(`[check-docs] OK — install snippets${install.note ? ` (${install.note})` : ""}`); + // #3770: a stale install snippet must fail the gate, not fall through to + // the final PASS. Mirror the exit(1) used by checks 1 and 2 above. + process.exit(1); } + console.log(`[check-docs] OK — install snippets${install.note ? ` (${install.note})` : ""}`); console.log("[check-docs] PASS"); }