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

Consistent error behavior for Artifact methods #1593

Merged
merged 7 commits into from
Dec 5, 2023

Conversation

robherley
Copy link
Contributor

@robherley robherley commented Dec 5, 2023

Partially addresses:

For our artifact operations, we weren't being consistent on how we were surfacing errors. Sometimes we'd resolve with a response object of {success:false} or we'd reject via an error throw.

This PR changes the behavior so that the errors consistently throw/reject for promises to "bubble up" and don't require a bunch of if(success) { } logic. Any common errors are exposed that support additional debugging information.

Also, the workflow tests used for this package were updated to reflect these changes.

@robherley robherley marked this pull request as ready for review December 5, 2023 18:56
@robherley robherley requested review from a team as code owners December 5, 2023 18:56
Copy link
Contributor

@bethanyj28 bethanyj28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@robherley robherley merged commit 04945c6 into main Dec 5, 2023
14 checks passed
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.

None yet

2 participants