Skip to content

Commit

Permalink
chore: Improve logging on Notify errors [skip pizza]
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Sep 12, 2024
1 parent e731ef6 commit 4cc1127
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,11 @@ 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: ${{
notifyError,
config,
template,
}}`,
);
}
};
Expand Down

0 comments on commit 4cc1127

Please sign in to comment.