tus: route errors to sentry

Per discussion with Andrey
This commit is contained in:
infinite-persistence 2022-01-24 12:25:54 +08:00
parent 7fc66aecb6
commit d68be6e9af
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -84,6 +84,9 @@ export function makeResumableUploadRequest(
} }
window.store.dispatch(doUpdateUploadProgress({ guid, status: 'error' })); window.store.dispatch(doUpdateUploadProgress({ guid, status: 'error' }));
analytics.sentryError('tus-upload', err);
reject( reject(
// $FlowFixMe - flow's constructor for Error is incorrect. // $FlowFixMe - flow's constructor for Error is incorrect.
new Error(customErr || err, { new Error(customErr || err, {