-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail if error is thrown while awaiting a Promise
This was causing a test in make-fetch-happen to hang silently and time out rather than failing appropriately. Note that this can only happen if the error is thrown _outside_ of the Promise flow of control. Throws from withing .then()/.catch() methods will reject the promise, which may be what you want. If an EventEmitter or something throws an error, tap will still track it, but the Promise chain might not. If it makes it to tap, then the Promise chain is probably broken.
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 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
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
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