added size/time info to up/download error reporting
This commit is contained in:
parent
7073cc8ce6
commit
927c981cd7
|
@ -181,7 +181,10 @@ export default function(state, emitter) {
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(err);
|
console.error(err);
|
||||||
state.raven.captureException(err);
|
state.raven.captureException(err, {
|
||||||
|
duration: err.duration,
|
||||||
|
size: err.size
|
||||||
|
});
|
||||||
metrics.stoppedUpload(archive, err.duration);
|
metrics.stoppedUpload(archive, err.duration);
|
||||||
emitter.emit('pushState', '/error');
|
emitter.emit('pushState', '/error');
|
||||||
}
|
}
|
||||||
|
@ -261,7 +264,11 @@ export default function(state, emitter) {
|
||||||
state.transfer = null;
|
state.transfer = null;
|
||||||
const location = err.message === '404' ? '/404' : '/error';
|
const location = err.message === '404' ? '/404' : '/error';
|
||||||
if (location === '/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;
|
const duration = Date.now() - start;
|
||||||
metrics.stoppedDownload({
|
metrics.stoppedDownload({
|
||||||
size,
|
size,
|
||||||
|
|
Loading…
Reference in New Issue