Add more logging

This commit is contained in:
Jesse Wierzbinski 2024-04-09 19:56:46 -10:00
parent f56e4f623a
commit 8ef8054351
No known key found for this signature in database
3 changed files with 3 additions and 0 deletions

View file

@ -273,6 +273,7 @@ export const federateStatus = async (status: StatusWithRelations) => {
const response = await fetch(request);
if (!response.ok) {
console.error(response.text());
throw new Error(
`Failed to federate status ${status.id} to ${user.uri}`,
);

View file

@ -95,6 +95,7 @@ export const followRequestUser = async (
const response = await fetch(request);
if (!response.ok) {
console.error(response.text());
throw new Error(
`Failed to federate follow request from ${follower.id} to ${followee.uri}`,
);

View file

@ -206,6 +206,7 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
const response = await fetch(request);
if (!response.ok) {
console.error(response.text());
throw new Error(
`Failed to federate follow accept from ${user.id} to ${account.uri}`,
);