Skip to content

Commit

Permalink
fix: Error type
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 1, 2024
1 parent d7f6ad5 commit b413acc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions api.planx.uk/lib/notify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ const sendEmail = async (
? JSON.stringify(error?.response?.data?.errors?.[0])
: error?.message;
throw Error(
`Error: Failed to send email using Notify client. Details: ${{
notifyError,
config,
template,
}}`,
`Error: Failed to send email using Notify client. Details: ${JSON.stringify(
{
notifyError,
config,
template,
},
)}`,
);
}
};
Expand Down

0 comments on commit b413acc

Please sign in to comment.