Skip to content

Commit

Permalink
fix: Log error stack explicitly on DPA failures (#3328)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Jun 27, 2024
1 parent fa61ca2 commit 91784c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.planx.uk/modules/admin/session/digitalPlanningData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getDigitalPlanningApplicationPayload = async (
return res.send(data);
} catch (error) {
return next({
message: `Failed to make Digital Planning Application payload: ${error}`,
message: `Failed to make Digital Planning Application payload: ${error}. Stack: ${(error as Error).stack}`,
});
}
};

0 comments on commit 91784c2

Please sign in to comment.