Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: throw when API returns an error code #12

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

Merged
eduardoboucas merged 3 commits into main from feat/api-throw
Jul 18, 2023
Merged

Conversation

Copy link
Member

@eduardoboucas eduardoboucas commented Jul 18, 2023

Which problem is this pull request solving?

Throw error when API returns a non-200 status code.

@eduardoboucas eduardoboucas requested a review from a team July 18, 2023 13:29
@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 18, 2023
Copy link
Contributor

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

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

that code looks so damn good to me, we should throw it over to main

eduardoboucas reacted with heart emoji
Copy link
Member Author

I realised the tests weren't quite right — we were throwing an error on the pre-signed URL, not on the API. I fixed them in eef5361.

@Skn0tt could I get another check, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@Skn0tt Skn0tt Skn0tt approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /