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

provide better error reporting when invalid nutanix credentials are used #148

Merged
merged 4 commits into from
Nov 17, 2020

Conversation

scott-grimes
Copy link
Contributor

Related: #44

Nutanix returns a non-json response with code 401 when invalid credentials are provided. Instead of printing the rather obscure message

cannot unmarshal string into GO struct field MessageResource.details of the type map [string]interface{}

we will now print

Invalid Nutanix Credentials

Copy link
Contributor

@marinsalinas marinsalinas left a comment

Choose a reason for hiding this comment

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

LGTM

@marinsalinas marinsalinas merged commit 8d4f3eb into nutanix:master Nov 17, 2020
yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this pull request Nov 9, 2021
provide better error reporting when invalid nutanix credentials are used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants