Skip to content

Commit

Permalink
fix: Only log Uniform response body as error (#3079)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored May 1, 2024
1 parent 7a9a1f2 commit b952a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.planx.uk/modules/send/uniform/uniform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export async function sendToUniform(
});
} catch (error) {
const errorMessage = isAxiosError(error)
? JSON.stringify(error.toJSON())
? JSON.stringify(error.response?.data)
: (error as Error).message;
return next({
error,
Expand Down

0 comments on commit b952a93

Please sign in to comment.