Skip to content

Commit

Permalink
fix: Log raw error without JSON.stringify [skip pizza]
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jun 27, 2024
1 parent 420c59c commit 034efdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api.planx.uk/modules/admin/session/digitalPlanningData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
});
}
};

0 comments on commit 034efdc

Please sign in to comment.