chore: a more verbose smtp api error (#175)
This commit is contained in:
committed by
GitHub
parent
6321f5edf1
commit
629f09100a
@@ -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(
|
||||
|
Reference in New Issue
Block a user