Skip to content

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

Merged
marinsalinas merged 4 commits intonutanix:masterfrom
scott-grimes:improvedErrorHandling
Nov 17, 2020
Merged

provide better error reporting when invalid nutanix credentials are used#148
marinsalinas merged 4 commits intonutanix:masterfrom
scott-grimes:improvedErrorHandling

Conversation

@scott-grimes
Copy link
Copy Markdown
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
Copy Markdown
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