fix(gsd): log error instead of empty catch in STATE.md rebuild

This commit is contained in:
Tibsfox 2026-04-05 12:08:19 -07:00
parent a2f7274a82
commit 5a51631941

View file

@ -591,7 +591,9 @@ export async function showDiscuss(
try {
const { buildStateMarkdown } = await import("./doctor.js");
await saveFile(resolveGsdRootFile(basePath, "STATE"), buildStateMarkdown(state));
} catch { /* non-fatal — stale STATE.md is better than crashing */ }
} catch (err) {
process.stderr.write(`gsd: STATE.md rebuild: ${(err as Error).message}\n`);
}
// No active milestone (or corrupted milestone with undefined id) —
// check for pending milestones to discuss instead