update error message for invalid json

pull/29753/head
Megan Bang 5 years ago
parent 765bff1dd5
commit 9b9b26a3cd

@ -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)))

Loading…
Cancel
Save