From 106aea4031173b95eee8af3f740b5316f3b9f106 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 13 Aug 2025 13:41:50 +1200 Subject: [PATCH] Remove silly stringify --- src/d2m/actions/register-pk-user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d2m/actions/register-pk-user.js b/src/d2m/actions/register-pk-user.js index 20281ae..b5e44e5 100644 --- a/src/d2m/actions/register-pk-user.js +++ b/src/d2m/actions/register-pk-user.js @@ -28,7 +28,7 @@ async function fetchMessage(messageID) { // Network issue, raise a more readable message throw new Error(`Failed to connect to PK API: ${networkError.toString()}`) } - if (!res.ok) throw new Error(`PK API returned an error: ${JSON.stringify(await res.text())}`) + if (!res.ok) throw new Error(`PK API returned an error: ${await res.text()}`) const root = await res.json() if (!root.member) throw new Error(`PK API didn't return member data: ${JSON.stringify(root)}`) return root