added bugsnag event notifiers on vote failure

This commit is contained in:
Nouman Tahir 2022-08-23 13:10:45 +05:00
parent 7f2798a94a
commit 241672948b

View File

@ -817,6 +817,7 @@ const _vote = (currentAccount, pin, author, permlink, weight) => {
resolve(result.result); resolve(result.result);
}) })
.catch((err) => { .catch((err) => {
bugsnagInstance.notify(err);
reject(err); reject(err);
}); });
}); });
@ -847,6 +848,7 @@ const _vote = (currentAccount, pin, author, permlink, weight) => {
if (err && get(err, 'jse_info.code') === 4030100) { if (err && get(err, 'jse_info.code') === 4030100) {
err.message = getDsteemDateErrorMessage(err); err.message = getDsteemDateErrorMessage(err);
} }
bugsnagInstance.notify(err);
reject(err); reject(err);
}); });
}); });