This commit is contained in:
Andris Reinman 2018-10-18 11:31:25 +03:00
parent 9c0be98c1c
commit 6c6a3c2605

View file

@ -37,7 +37,7 @@ if (config.bugsnagCode) {
Object.keys(err).forEach(key => {
let vKey = '_' + key;
if (!message[vKey]) {
if (!message[vKey] && typeof err[key] !== 'object') {
message[vKey] = (err[key] || '').toString().trim();
}
});
@ -45,8 +45,8 @@ if (config.bugsnagCode) {
for (let extra of args) {
Object.keys(extra || {}).forEach(key => {
let vKey = '_' + key;
if (!message[vKey]) {
message[vKey] = (err[key] || '').toString().trim();
if (!message[vKey] && typeof extra[key] !== 'object') {
message[vKey] = (extra[key] || '').toString().trim();
}
});
}