Add cleaner message for rate-limited users #19

Merged
floatingghost merged 3 commits from rate-limit-check into develop 2022-06-26 19:02:50 +00:00
Showing only changes of commit 5f02fb061b - Show all commits

View file

@ -483,7 +483,7 @@ const fetchConversation = ({ id, credentials }) => {
if (data.ok) {
return data
}
throw new Error(['Error fetching timeline', errorStatusMapper(data)])
throw new Error('Error fetching timeline', errorStatusMapper(data))
})
.then((data) => data.json())
.then(({ ancestors, descendants }) => ({
@ -499,7 +499,7 @@ const fetchStatus = ({ id, credentials }) => {
if (data.ok) {
return data
}
throw new Error(['Error fetching timeline', errorStatusMapper(data)])
throw new Error('Error fetching timeline', errorStatusMapper(data))
})
.then((data) => data.json())
.then((data) => parseStatus(data))