Skip to content

fix(middleware): Obey the Promise API.#3064

Merged
lusarz merged 1 commit intokarma-runner:masterfrom
johnjbarton:no-fail
Jul 12, 2018
Merged

fix(middleware): Obey the Promise API.#3064
lusarz merged 1 commit intokarma-runner:masterfrom
johnjbarton:no-fail

Conversation

@johnjbarton
Copy link
Contributor

Rather than catching and discarding the error if no error handler is passed, let the promise package chain it. This allows use to have a .catch() follow the then().

Rather than catching and discarding the error if no error handler is passed, let the promise package chain it. This allows use to have a .catch() follow the then().
@lusarz lusarz merged commit 93ba05a into karma-runner:master Jul 12, 2018
johnjbarton added a commit to johnjbarton/karma that referenced this pull request Jul 27, 2018
Add a handler for unhandledRejections, log error and disconnect all, then exit.
Also remove broken, untested rejection handler in middleware. Prior to karma-runner#3064,
this block was probably unreachable; the arguments to serveStaticFile are incorrect.
johnjbarton added a commit that referenced this pull request Aug 4, 2018
Add a handler for unhandledRejections, log error and disconnect all, then exit.
Also remove broken, untested rejection handler in middleware. Prior to #3064,
this block was probably unreachable; the arguments to serveStaticFile are incorrect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants