mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Add more logging
This commit is contained in:
parent
f56e4f623a
commit
8ef8054351
|
|
@ -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}`,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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}`,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue