From 927c981cd7cd8f12c823edc0a914f464f9a7fe8e Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 9 Aug 2019 10:09:34 -0700 Subject: [PATCH] added size/time info to up/download error reporting --- app/controller.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/controller.js b/app/controller.js index c460449e..d6ec9375 100644 --- a/app/controller.js +++ b/app/controller.js @@ -181,7 +181,10 @@ export default function(state, emitter) { } else { // eslint-disable-next-line no-console console.error(err); - state.raven.captureException(err); + state.raven.captureException(err, { + duration: err.duration, + size: err.size + }); metrics.stoppedUpload(archive, err.duration); emitter.emit('pushState', '/error'); } @@ -261,7 +264,11 @@ export default function(state, emitter) { state.transfer = null; const location = err.message === '404' ? '/404' : '/error'; if (location === '/error') { - state.raven.captureException(err); + state.raven.captureException(err, { + duration: err.duration, + size: err.size, + progress: err.progress + }); const duration = Date.now() - start; metrics.stoppedDownload({ size,