Skip to content

Commit

Permalink
chore: Improve logging on Notify errors (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Oct 1, 2024
1 parent 660654b commit 469b115
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api.planx.uk/lib/notify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)}`,
);
}
};
Expand Down

0 comments on commit 469b115

Please sign in to comment.