diff --git a/js/utils/error_utils.js b/js/utils/error_utils.js index 31cdd27f..4aa74247 100644 --- a/js/utils/error_utils.js +++ b/js/utils/error_utils.js @@ -15,6 +15,13 @@ import AppConstants from '../constants/application_constants'; function logGlobal(error, comment, ignoreSentry) { console.error(error); + if (error.hasOwnProperty('json')) { + comment = { + ...comment, + json: error.json + }; + } + if (!ignoreSentry) { Raven.captureException(error, comment ? { extra: { comment } } : undefined); }