fix(gsd): log error instead of empty catch in STATE.md rebuild
This commit is contained in:
parent
a2f7274a82
commit
5a51631941
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue