diff --git a/webclient/src/Feed.js b/webclient/src/Feed.js index 4681d20..f5c10d9 100644 --- a/webclient/src/Feed.js +++ b/webclient/src/Feed.js @@ -39,7 +39,9 @@ function Feed({ updateCache }) { const storyRes = await fetch('/api/' + newStory.id, { signal: controller.signal }); clearTimeout(timeoutId); - if (!storyRes.ok) throw new Error('Story fetch failed'); + if (!storyRes.ok) { + throw new Error(`Server responded with ${storyRes.status} ${storyRes.statusText}`); + } const storyResult = await storyRes.json(); const fullStory = storyResult.story;