diff --git a/CHANGELOG.md b/CHANGELOG.md index 0445d7e57..a00f6bb67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,11 @@ -# UNRELEASED - - +# v.1.36.0 ## Features * Added BETA support for private module registry test variables by @aaabdelgany [#787](https://github.com/hashicorp/go-tfe/pull/787) ## Bug Fixes * Fix incorrect attribute type for `RegistryModule.VCSRepo.Tags` by @hashimoon [#789](https://github.com/hashicorp/go-tfe/pull/789) +* Fix nil dereference panic within `StateVersions` `upload` after not handling certain state version create errors by @brandonc [#792](https://github.com/hashicorp/go-tfe/pull/792) # v.1.35.0 ## Features diff --git a/state_version.go b/state_version.go index c9432f5cc..e8f646ae2 100644 --- a/state_version.go +++ b/state_version.go @@ -287,6 +287,7 @@ func (s *stateVersions) Upload(ctx context.Context, workspaceID string, options if strings.Contains(err.Error(), "param is missing or the value is empty: state") { return nil, ErrStateVersionUploadNotSupported } + return nil, err } g, _ := errgroup.WithContext(ctx)