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

Pass request error status codes through to ForceException #369

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

benbenwilde
Copy link

Looks like ForceException had a field for a status code but it was never being filled even though it was often being created due to non-success status codes.
This PR fixes that, so that any relevant status codes get passed back to the caller via ForceException whenever possible.

@benbenwilde
Copy link
Author

@wadewegner this PR enables callers to see the status code when there is a request error.

Our use case is to be able to more easily detect when a request fails due to an expired token or other authentication issues, so we can re-authenticate and try again.

SLA already signed. Thanks!

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.

1 participant