Skip to content

Commit 4240eb4

Browse files
update error messages
1 parent 7553e08 commit 4240eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/fetchFeedItems.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const fetchFeedItems = async (
1616
)
1717

1818
if (!response.ok) {
19-
console.error('An error occurred while fetching the photos.')
19+
console.error('An error occurred while fetching the comments.')
2020
throw new Error('Network response was not ok')
2121
}
2222

2323
const data = await response.json()
2424
if (!data) {
25-
console.error('An error occurred while fetching the photos.')
25+
console.error('An error occurred while fetching the comments.')
2626
throw new Error('Received data was not ok')
2727
}
2828

@@ -38,7 +38,7 @@ const fetchFeedItems = async (
3838
return unique
3939
})
4040
} catch (error: unknown) {
41-
console.error('An error occurred while fetching the photos.', error)
41+
console.error('An error occurred while fetching the comments.', error)
4242
}
4343
}
4444

0 commit comments

Comments
 (0)