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

Align calls of buildExecutionContext #3293

Merged
merged 1 commit into from Oct 9, 2021
Merged

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Oct 7, 2021

buildExecutionContext used to throw an error on failure, but was changed
to return an array of errors (enabling the function to return multiple
errors encountered during variable coercion).

As the function is no longer designed to throw, it no longer needs to be
wrapped in a try block when used within the subscribe function. This
change aligns the use of buildExecutionContext between the subscribeandexecute` functions.

`buildExecutionContext` used to throw an error on failure, but was changed
to return an array of errors (enabling the function to return multiple
errors encountered during variable coercion).

As the function is no longer designed to throw, it no longer needs to be
wrapped in a try block when used within the `subscribe` function. This
change aligns the use of `buildExecutionContext between the `subscribe`
and `execute` functions.
@yaacovCR
Copy link
Contributor Author

yaacovCR commented Oct 7, 2021

@IvanGoncharov , the integration check failure seems spurious, i think this is ready for review

@saihaj
Copy link
Member

saihaj commented Oct 7, 2021

@yaacovCR it is failing because of npm outage https://status.npmjs.org/

@yaacovCR
Copy link
Contributor Author

yaacovCR commented Oct 7, 2021

@yaacovCR it is failing because of npm outage https://status.npmjs.org/

ah. passing now.

@IvanGoncharov IvanGoncharov added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Oct 9, 2021
@IvanGoncharov IvanGoncharov merged commit 239aa33 into main Oct 9, 2021
@IvanGoncharov IvanGoncharov deleted the remove-from-try-block branch October 9, 2021 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants