Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in callback #15

Closed
wants to merge 2 commits into from

Conversation

scull7
Copy link
Collaborator

@scull7 scull7 commented Jun 11, 2018

See #14

scull7 added 2 commits June 10, 2018 18:31
I'm not sure how this should be handled?
Here are the exception problems in order of (imho) severity.

* fromPromise (exception in callback)
  This is particulary insidious because it effectively squelches the
  error unless the user has the [unhandled-rejection] process handler
  defined.

* mapOk (async exception)
  This causes problems because the exception is can't be caught
  by a traditional try/catch mechanism. Wrapping the call in a
  Promise may be a solution, though a bad one I think.

* mapOk (sync exception)
  because of the synchronous context this exception may be caught,
  but the behavior is surprising, to me a least.

[unhandled-rejection]: https://nodejs.org/api/process.html#process_event_unhandledrejection
@scull7 scull7 requested a review from gilbert June 11, 2018 02:18
@coveralls
Copy link

coveralls commented Jun 11, 2018

Pull Request Test Coverage Report for Build 19

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.938%

Totals Coverage Status
Change from base Build 18: 0.0%
Covered Lines: 82
Relevant Lines: 83

💛 - Coveralls

@scull7 scull7 closed this Jun 11, 2018
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