1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-18 08:52:00 +00:00

More event filtering for Sentry error reporting.

This commit is contained in:
SirStendec 2018-04-11 17:49:31 -04:00
parent d7a07a5612
commit e773600a3e
6 changed files with 34 additions and 4 deletions

View file

@ -48,8 +48,16 @@ export default class RichContent extends Module {
data = await data;
}
if ( ! data )
data = {
error: true,
title: t.i18n.t('card.error', 'An error occured.'),
desc_1: t.i18n.t('card.empty', 'No data was returned.')
}
this.setState(Object.assign({
loaded: true
loaded: true,
url: this.props.url
}, data));
} catch(err) {
@ -59,6 +67,7 @@ export default class RichContent extends Module {
this.setState({
loaded: true,
error: true,
url: this.props.url,
title: t.i18n.t('card.error', 'An error occured.'),
desc_1: String(err)
});