Skip to content

Commit

Permalink
fix: catch DELETE http error
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Sep 20, 2019
1 parent 6471b36 commit a09b8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uploadx/src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export abstract class Uploader implements UploadState {

protected onCancel(): void {
this.abort();
this.url && this.request({ method: 'DELETE' });
this.url && this.request({ method: 'DELETE' }).catch(err => {});
}

/**
Expand Down

0 comments on commit a09b8d4

Please sign in to comment.