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();
|
const errorData = await response.text();
|
||||||
console.error(
|
console.error(
|
||||||
"Unsend API error response: error:",
|
"Unsend API error response: error:",
|
||||||
errorData,
|
JSON.stringify(errorData, null, 4),
|
||||||
`\nemail data: ${emailDataText}`
|
`\nemail data: ${emailDataText}`
|
||||||
);
|
);
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
Reference in New Issue
Block a user