We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05741b7 commit e3bae5aCopy full SHA for e3bae5a
src/components/changelog/docsChangelog.tsx
@@ -19,11 +19,13 @@ async function getChangelogEntries(): Promise<ChangelogEntry[]> {
19
});
20
21
if (!res.ok) {
22
- throw new Error('Failed to fetch changelog');
+ throw new Error(`Failed to fetch changelog: ${res.status} ${res.statusText}`);
23
}
24
25
return res.json();
26
} catch (error) {
27
+ // eslint-disable-next-line no-console
28
+ console.error('Error fetching changelog:', error);
29
// Error fetching changelog - return empty array
30
return [];
31
0 commit comments