-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Catch preflight errors on file upload (#212)
* Catch preflight errors on js api * ts error fix * Throw error instead of return statement * Add second reaction for uploader --------- Co-authored-by: Mert Kirbuga <mert.kirbuga@backlight.co>
- Loading branch information
1 parent
b9e690d
commit c535587
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1092,7 +1092,7 @@ export class Session< | |
}, | ||
}); | ||
|
||
uploader.start(); | ||
uploader.start().catch(reject); | ||
}); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters