chore: a more verbose smtp api error (#175)

This commit is contained in:
Mohannad Faihan Otaibi
2025-06-14 03:13:20 +03:00
committed by GitHub
parent 6321f5edf1
commit 629f09100a

View File

@@ -32,7 +32,7 @@ async function sendEmailToUnsend(emailData: any, apiKey: string) {
const errorData = await response.text();
console.error(
"Unsend API error response: error:",
errorData,
JSON.stringify(errorData, null, 4),
`\nemail data: ${emailDataText}`
);
throw new Error(