diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 0fd721a34d..f9ff9c3507 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -235,7 +235,7 @@ ActivityPub.send = async (type, id, targets, payload) => { if (String(response.statusCode).startsWith('2')) { winston.verbose(`[activitypub/send] Successfully sent ${payload.type} to ${uri}`); } else { - winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${body}`); + winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${String(body)}`); } } catch (e) { winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`);