Skip to content

Commit 0a5739f

Browse files
committed
chore: add comments
1 parent 6e9692e commit 0a5739f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/api/fetchRSS.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ export const fetchRSS = async (xmlUrl: string | string[]) => {
122122
}
123123
} catch (error) {
124124
console.error(error instanceof Error ? error.message : error)
125+
// Do not break build for single fetch failure
125126
continue
126127
}
127128
}
128129

130+
// Only break build if insufficient number of items fetched
129131
if (allItems.length < RSS_DISPLAY_COUNT)
130132
throw new Error("Insufficient number of RSS items fetched")
131133

0 commit comments

Comments
 (0)