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

Proper Api error #34

Merged
merged 2 commits into from
Jan 27, 2023
Merged

Proper Api error #34

merged 2 commits into from
Jan 27, 2023

Conversation

shinji62
Copy link
Collaborator

Added functions to get Api error when possible instead of http error code
before

ERROR[0000]resume_cluster.go:38 Error when calling `ClusterApi.ResumeCluster`: 403 Forbidden

After

ERROR[0000]resume_cluster.go:38 Error when calling `ClusterApi.ResumeCluster`: Cluster is not in paused state

Copy link
Collaborator

@posriniv posriniv left a comment

Choose a reason for hiding this comment

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

Looks good to me!

cmd/backup.go Show resolved Hide resolved
@shinji62 shinji62 merged commit 9a91d1f into main Jan 27, 2023
@posriniv posriniv deleted the feature/proper-api-error branch February 7, 2023 03:06
cdavid pushed a commit that referenced this pull request Feb 23, 2023
* Added functions to get Api error when possible instead of http error code
* Added original error

Former-commit-id: 39e7aae8d0c0075a7d865f14930e32d829c68478
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.

3 participants