mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
improve emails errors
This commit is contained in:
parent
5fcf3fba88
commit
6f2bf5659d
1 changed files with 4 additions and 1 deletions
|
|
@ -149,7 +149,10 @@ export async function sendTxn (mailingInfoArray, emailType, variables, personalV
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue