improve emails errors

This commit is contained in:
Matteo Pagliazzi
2020-04-05 19:15:58 +02:00
parent 5fcf3fba88
commit 6f2bf5659d

View File

@@ -149,7 +149,10 @@ export async function sendTxn (mailingInfoArray, emailType, variables, personalV
backoff: { delay: 10 * 60 * 1000, type: 'fixed' }, backoff: { delay: 10 * 60 * 1000, type: 'fixed' },
}, },
}, },
}).json().catch(err => logger.error(err, 'Error while sending an email.')); }).json().catch(err => logger.error(err, {
extraMessage: 'Error while sending an email.',
emailType,
}));
} }
return null; return null;