Skip to content

Commit a4d8902

Browse files
authored
Logging fix for demo URL (#86)
1 parent f69aa00 commit a4d8902

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/components/CapoClient.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
8787
const response = await fetch(proxy);
8888
if (response.status == 502) {
8989
throw new Error(`502 Gateway Error. The URL ${url} cannot be fetched. (Possibly too many redirects)`);
90+
} else if (response.status == 404) {
91+
throw new Error('Unable to fetch that URL. The page might not exist.');
9092
} else if (!response.ok) {
9193
throw new Error('Unknown error fetching the URL. Please file an issue: https://github.com/rviscomi/capo.js/issues/');
9294
}

0 commit comments

Comments
 (0)