mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-08 17:07:44 +08:00
update
This commit is contained in:
parent
9c0be98c1c
commit
6c6a3c2605
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ if (config.bugsnagCode) {
|
||||||
|
|
||||||
Object.keys(err).forEach(key => {
|
Object.keys(err).forEach(key => {
|
||||||
let vKey = '_' + key;
|
let vKey = '_' + key;
|
||||||
if (!message[vKey]) {
|
if (!message[vKey] && typeof err[key] !== 'object') {
|
||||||
message[vKey] = (err[key] || '').toString().trim();
|
message[vKey] = (err[key] || '').toString().trim();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -45,8 +45,8 @@ if (config.bugsnagCode) {
|
||||||
for (let extra of args) {
|
for (let extra of args) {
|
||||||
Object.keys(extra || {}).forEach(key => {
|
Object.keys(extra || {}).forEach(key => {
|
||||||
let vKey = '_' + key;
|
let vKey = '_' + key;
|
||||||
if (!message[vKey]) {
|
if (!message[vKey] && typeof extra[key] !== 'object') {
|
||||||
message[vKey] = (err[key] || '').toString().trim();
|
message[vKey] = (extra[key] || '').toString().trim();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue