Skip to content

Commit

Permalink
chore: cleanup error propagation
Browse files Browse the repository at this point in the history
Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>
  • Loading branch information
joaosa and vasco-santos authored Jun 4, 2024
1 parent 6c650c5 commit 7ad41d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upload-client/src/receipts.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Receipt {
// @ts-ignore
if (res.error.name === 'ReceiptNotFound') {
// throw an error that will cause `p-retry` to retry with
throw new ReceiptNotFound(taskCid)
throw res.error
} else {
throw new AbortError(
new Error('failed to fetch blob/accept receipt', {
Expand Down

0 comments on commit 7ad41d7

Please sign in to comment.