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

Added message property to APIError #432

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Conversation

kwilsonmg
Copy link
Contributor

@kwilsonmg kwilsonmg commented Mar 27, 2024

Given that the APIError object returns both a code and message, both should be readily accessible to the end user. The end user can already access this by accessing the protected variable _error, but that isn't best practice.

This would address #431

Given that the error object returns both a code and message, both should be accessible to the end user. The end user can already access this by accessing the protected variable _error.
@kwilsonmg kwilsonmg requested a review from hiohiohio as a code owner March 27, 2024 18:09
Swapped to match rest of file. This relates to alpacahq#431.
@kwilsonmg
Copy link
Contributor Author

@hiohiohio could you please take a look at this PR?

Copy link
Contributor

@hiohiohio hiohiohio left a comment

Choose a reason for hiding this comment

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

LGTM! Sorry for late to review!

@hiohiohio hiohiohio merged commit 7f23ac0 into alpacahq:master Nov 6, 2024
5 checks passed
@kwilsonmg kwilsonmg deleted the iss431 branch November 9, 2024 20:01
@kwilsonmg
Copy link
Contributor Author

@hiohiohio No worries. Thanks for getting to this! I'll start work on #136 now that this isn't blocking (this was sort of requisite). 😃

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