From 9b9b26a3cd9247c3c38aa2663c485150d3322af8 Mon Sep 17 00:00:00 2001 From: Megan Bang Date: Wed, 13 Oct 2021 13:51:07 -0500 Subject: [PATCH] update error message for invalid json --- internal/backend/remote-state/gcs/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/remote-state/gcs/backend.go b/internal/backend/remote-state/gcs/backend.go index 1f1577799..0478a95ab 100644 --- a/internal/backend/remote-state/gcs/backend.go +++ b/internal/backend/remote-state/gcs/backend.go @@ -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)))