Skip to content

Improve error message on incorrect guid (JIRA request) #2176

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

Closed
kidk opened this issue Dec 22, 2022 · 2 comments
Closed

Improve error message on incorrect guid (JIRA request) #2176

kidk opened this issue Dec 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@kidk
Copy link
Contributor

kidk commented Dec 22, 2022

Shared with us on public JIRA Moved to Github for tracking.

When running "terraform import newrelic_synthetics_private_location.location GUID" with an incorrect GUID argument, I get this error message:

Error: Argument "guid" has invalid value $guid.
It looks like it's supposed to dereference a variable but is treating it as a literal instead, so I get the variable's name in the error message rather than its value.

When I got this error message I did not know that the value I was passing in as the GUID argument was incorrect, so this error message misled me by making it look like something in the API was broken and it wasn't correctly using the GUID I gave it. If the error message had, correctly, shown me the value that I passed in and told me that was invalid, I would have know what the problem was more quickly.

Please fix this so that the error message shows the value that is invalid.

@kidk kidk added the enhancement New feature or request label Dec 22, 2022
@kidk
Copy link
Contributor Author

kidk commented Dec 22, 2022

Ref: #2177

@NSSPKrishna
Copy link
Member

NSSPKrishna commented Jan 12, 2023

Fix is available in version v3.12.0.

@kidk kidk closed this as completed Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants