Loading src/common/services/log.service.js +7 −2 Original line number Original line Diff line number Diff line Loading @@ -69,13 +69,18 @@ class LogService { } } exception(prepend, error) { exception(prepend, error) { if (!error) { if (!error) { error = prepend; error = prepend; prepend = null; prepend = null; } } if (!isNetworkFail(error) && !isUserError(error) && !isAbort(error) && (!this.isApiError(error) || this.isUnexpectedError(error))) { if ( error instanceof Error && !isNetworkFail(error) && !isUserError(error) && !isAbort(error) && (!this.isApiError(error) || this.isUnexpectedError(error)) ) { // report the issue to sentry // report the issue to sentry Sentry.captureException(error); Sentry.captureException(error); Loading src/common/services/push/router.js +2 −1 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,8 @@ export default class Router { } else if (entity_type[0] === 'object') { } else if (entity_type[0] === 'object') { navigation.push('Activity', { guid: data.json.entity_guid }); navigation.push('Activity', { guid: data.json.entity_guid }); } else { } else { logService.exception('[DeepLinkRouter] Unknown notification:', entity_type, data); const err = new Error(`[DeepLinkRouter] Unknown notification, entity_type: ${entity_type}`); logService.exception('[DeepLinkRouter] Unknown notification:', err); } } break; break; Loading Loading
src/common/services/log.service.js +7 −2 Original line number Original line Diff line number Diff line Loading @@ -69,13 +69,18 @@ class LogService { } } exception(prepend, error) { exception(prepend, error) { if (!error) { if (!error) { error = prepend; error = prepend; prepend = null; prepend = null; } } if (!isNetworkFail(error) && !isUserError(error) && !isAbort(error) && (!this.isApiError(error) || this.isUnexpectedError(error))) { if ( error instanceof Error && !isNetworkFail(error) && !isUserError(error) && !isAbort(error) && (!this.isApiError(error) || this.isUnexpectedError(error)) ) { // report the issue to sentry // report the issue to sentry Sentry.captureException(error); Sentry.captureException(error); Loading
src/common/services/push/router.js +2 −1 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,8 @@ export default class Router { } else if (entity_type[0] === 'object') { } else if (entity_type[0] === 'object') { navigation.push('Activity', { guid: data.json.entity_guid }); navigation.push('Activity', { guid: data.json.entity_guid }); } else { } else { logService.exception('[DeepLinkRouter] Unknown notification:', entity_type, data); const err = new Error(`[DeepLinkRouter] Unknown notification, entity_type: ${entity_type}`); logService.exception('[DeepLinkRouter] Unknown notification:', err); } } break; break; Loading