Merge pull request #29753 from hashicorp/megan_update_msg

update error message for invalid json
This commit is contained in:
megan07 2021-10-13 14:04:24 -05:00 committed by GitHub
commit 968f422681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ func (b *Backend) configure(ctx context.Context) error {
}
if !json.Valid([]byte(contents)) {
return fmt.Errorf("contents of credentials are invalid json")
return fmt.Errorf("the string provided in credentials is neither valid json nor a valid file path")
}
credOptions = append(credOptions, option.WithCredentialsJSON([]byte(contents)))