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}`, }); } };