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

fix: misleading error msg when GOOGLE_APPLICATION_CREDENTIALS is not used #102

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

thundergolfer
Copy link
Contributor

@thundergolfer thundergolfer commented Feb 9, 2024

Currently if you use CustomServiceAccount::from_json(data)? you will get an error message mentioning GOOGLE_APPLICATION_CREDENTIALS. But given the input data is a string the involvement of a GOOGLE_APPLICATION_CREDENTIALS is an assumption.

If you are actually using SERVICE_ACCOUNT_JSON and passing that environment variable's value as data then this error message is misleading.

src/error.rs Show resolved Hide resolved
@djc
Copy link
Owner

djc commented Feb 19, 2024

Thanks!

@djc djc merged commit f10c04a into djc:main Feb 19, 2024
6 checks passed
@thundergolfer
Copy link
Contributor Author

Cheers for review and merge!

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.

None yet

2 participants