From 401b4c5fa6994a0dacccb54aa33bd39c7f5fc71d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 9 Feb 2024 11:37:22 -0500 Subject: [PATCH] fix: stringify error body in ap.send --- src/activitypub/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`);