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

fix(core): programmatic release API should throw on error #20448

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

JamesHenry
Copy link
Collaborator

@JamesHenry JamesHenry commented Nov 28, 2023

NOTE TO REVIEWERS: The diff looks bigger than it is because removing handeErrors causes indentation changes, best to view with whitespace hidden: https://github.com/nrwl/nx/pull/20448/files?diff=unified&w=1


Current Behavior

The functions were originally written as CLI command handlers and still behave too much like that when it comes to error handling. Consumers of the programmatic API do not get to use try/catch how they would expect to and do not get access to the raw errors.

Expected Behavior

Consumers of the programmatic API can use try/catch how they would expect to and get full access to the raw errors thrown by the command implementations.


  • NOTE: Additionally fixed one config issue I found

Copy link

vercel bot commented Nov 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2023 3:13pm

@JamesHenry JamesHenry marked this pull request as ready for review November 28, 2023 13:59
@JamesHenry JamesHenry requested a review from a team as a code owner November 28, 2023 13:59
@JamesHenry JamesHenry enabled auto-merge (squash) November 28, 2023 14:34
@JamesHenry JamesHenry requested a review from a team as a code owner November 28, 2023 15:12
@FrozenPandaz FrozenPandaz merged commit adefe63 into nrwl:master Nov 28, 2023
4 of 6 checks passed
Copy link

github-actions bot commented Dec 4, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants