diff --git a/api.planx.uk/lib/notify/index.ts b/api.planx.uk/lib/notify/index.ts index 064fe444bf..6920020be9 100644 --- a/api.planx.uk/lib/notify/index.ts +++ b/api.planx.uk/lib/notify/index.ts @@ -75,7 +75,13 @@ const sendEmail = async ( ? JSON.stringify(error?.response?.data?.errors?.[0]) : error?.message; throw Error( - `Error: Failed to send email using Notify client. ${notifyError}`, + `Error: Failed to send email using Notify client. Details: ${JSON.stringify( + { + notifyError, + config, + template, + }, + )}`, ); } };