WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(web): log errors when boards fetch fails per-category in structure page (ATB-47)

Malpercio ce88c990 2af970ea

+13 -1
+13 -1
apps/web/src/routes/admin.tsx
··· 750 750 }) 751 751 .then((r) => r.json() as Promise<{ boards: BoardEntry[] }>) 752 752 .then((data) => data.boards) 753 - .catch(() => [] as BoardEntry[]) 753 + .catch((error) => { 754 + if (isProgrammingError(error)) throw error; 755 + logger.error("Failed to fetch boards for category", { 756 + operation: "GET /admin/structure", 757 + categoryId: cat.id, 758 + error: error instanceof Error ? error.message : String(error), 759 + }); 760 + return [] as BoardEntry[]; 761 + }) 754 762 ) 755 763 ); 756 764 } catch (error) { 757 765 if (isProgrammingError(error)) throw error; 766 + logger.error("Failed to fetch boards for all categories", { 767 + operation: "GET /admin/structure", 768 + error: error instanceof Error ? error.message : String(error), 769 + }); 758 770 boardsPerCategory = catList.map(() => []); 759 771 } 760 772