tus: route errors to sentry
Per discussion with Andrey
This commit is contained in:
parent
7fc66aecb6
commit
d68be6e9af
1 changed files with 3 additions and 0 deletions
|
@ -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, {
|
||||||
|
|
Loading…
Reference in a new issue