Sentry: fix tus errors

The first parameter should be the error object, not a general label.
This commit is contained in:
infinite-persistence 2022-02-21 15:39:15 +08:00 committed by infinite-persistence
parent 7612722263
commit 5b81346e59

View file

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