From 034efdc6d3ab3c731c76f77819b9ebeec42eac60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 27 Jun 2024 09:22:01 +0100 Subject: [PATCH] fix: Log raw error without JSON.stringify [skip pizza] --- api.planx.uk/modules/admin/session/digitalPlanningData.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api.planx.uk/modules/admin/session/digitalPlanningData.ts b/api.planx.uk/modules/admin/session/digitalPlanningData.ts index 211644e62b..5ad773a9fa 100644 --- a/api.planx.uk/modules/admin/session/digitalPlanningData.ts +++ b/api.planx.uk/modules/admin/session/digitalPlanningData.ts @@ -40,8 +40,7 @@ export const getDigitalPlanningApplicationPayload = async ( return res.send(data); } catch (error) { return next({ - message: `Failed to make Digital Planning Application payload: - ${JSON.stringify(error as Error, null, 2)}.`, + message: `Failed to make Digital Planning Application payload: ${error}`, }); } };