Reduce verbosity of tus errors now that we know the locked problem is with tusd

This commit is contained in:
infinite-persistence 2022-03-18 17:04:57 +08:00 committed by Thomas Zarebczan
parent c479a18cd8
commit fdb5658df6

View file

@ -101,9 +101,9 @@ export function makeResumableUploadRequest(
// $FlowFixMe - flow's constructor for Error is incorrect.
new Error(customErr || err, {
cause: {
...(uploader._fingerprint ? { fingerprint: uploader._fingerprint } : {}),
...(uploader._retryAttempt ? { retryAttempt: uploader._retryAttempt } : {}),
...(uploader._offsetBeforeRetry ? { offsetBeforeRetry: uploader._offsetBeforeRetry } : {}),
// ...(uploader._fingerprint ? { fingerprint: uploader._fingerprint } : {}),
// ...(uploader._retryAttempt ? { retryAttempt: uploader._retryAttempt } : {}),
// ...(uploader._offsetBeforeRetry ? { offsetBeforeRetry: uploader._offsetBeforeRetry } : {}),
...(customErr ? { original: errMsg } : {}),
},
})