don't rethrow

This commit is contained in:
Henry Jameson 2026-06-25 15:36:49 +03:00
commit 8becc0704b

View file

@ -151,9 +151,6 @@ export const fetchConversation = ({ id, credentials }) =>
descendants: result.data.descendants.map(parseStatus), descendants: result.data.descendants.map(parseStatus),
}, },
})) }))
.catch((error) => {
throw new Error('Error fetching timeline', error)
})
export const fetchStatus = ({ id, credentials }) => export const fetchStatus = ({ id, credentials }) =>
promisedRequest({ promisedRequest({
@ -161,9 +158,6 @@ export const fetchStatus = ({ id, credentials }) =>
credentials, credentials,
}) })
.then(({ data, ...rest }) => ({ ...rest, data: parseStatus(data) })) .then(({ data, ...rest }) => ({ ...rest, data: parseStatus(data) }))
.catch((error) => {
throw new Error('Error fetching timeline', error)
})
export const fetchStatusSource = ({ id, credentials }) => export const fetchStatusSource = ({ id, credentials }) =>
promisedRequest({ promisedRequest({
@ -171,9 +165,6 @@ export const fetchStatusSource = ({ id, credentials }) =>
credentials, credentials,
}) })
.then(({ data, ...rest }) => ({ ...rest, data: parseSource(data) })) .then(({ data, ...rest }) => ({ ...rest, data: parseSource(data) }))
.catch((error) => {
throw new Error('Error fetching timeline', error)
})
export const fetchStatusHistory = ({ status, credentials }) => export const fetchStatusHistory = ({ status, credentials }) =>
promisedRequest({ promisedRequest({
@ -281,9 +272,6 @@ export const search2 = ({
data.statuses = data.statuses.slice(0, limit).map((s) => parseStatus(s)) data.statuses = data.statuses.slice(0, limit).map((s) => parseStatus(s))
return { ...rest, data } return { ...rest, data }
}) })
.catch((error) => {
throw new Error('Error fetching timeline', error)
})
} }
export const fetchKnownDomains = ({ credentials }) => export const fetchKnownDomains = ({ credentials }) =>