Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch((error) => {
Sentry.captureException(error)
console.error(error)
feedbackModule.showError(i18n.t("feedback_msg.error.connect_wallet_prob").toString())
})
} else {
const confettiCanon = document.querySelector('.confetti-canon');
actions.setInput(input, wordIndex, charIndex);
actions.check(confettiCanon);
}
}),
ChangeButton({
className: 'change-button--next',
onClick: () => actions.next()
}),
Hint(),
ProgressBar()
),
document.querySelector('.root')
);
} catch (err) {
return Sentry.captureException(err);
}
}
Sentry.withScope(scope => {
scope.setExtra('event', e);
scope.setExtra('relatedTarget', e.relatedTarget);
Sentry.captureException(err);
});
}
Sentry.withScope((scope) => {
Object.keys(info).forEach((key) => {
scope.setExtra(key, info[key]);
});
Sentry.captureException(error);
});
Sentry.withScope((scope) => {
scope.setTag('javascript_clusters_list', tag);
Sentry.captureException(error);
});
};
Sentry.withScope(scope => {
Object.keys(errorInfo).forEach(key => {
scope.setExtra(key, errorInfo[key])
})
scope.setExtra("name", this.props.name)
Sentry.captureException(error)
})
}
Sentry.withScope(scope => {
scope.setExtra('actor', actor);
Sentry.captureException(new Error('Unknown avatar type'));
});
Sentry.withScope(scope => {
scope.setFingerprint(['RouteNotFound']);
Sentry.captureException(new Error('Route not found'));
});
}
}
if (tags) {
Object.keys(tags).forEach(tagKey => {
scopes.setTag(tagKey, tags[tagKey]);
});
}
scopes.setUser({
user_id: userID,
email: userEmail,
username
});
});
captureException(error);
}
};
Sentry.withScope(scope => {
Object.keys(errorInfo).forEach(key => {
scope.setExtra(key, errorInfo[key]);
});
Sentry.captureException(error);
});
}