Skip to content

Commit aaf9919

Browse files
committed
Fixes panic during state version upload after some create errors
1 parent 87a455e commit aaf9919

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# UNRELEASED
2-
<!-- Add CHANGELOG entry to this section for any PR awaiting the next release -->
3-
<!-- Please also include if this is a Bug Fix, Enhancement, or Feature -->
1+
# v.1.35.1
42

53
## Bug Fixes
64
* Fix incorrect attribute type for `RegistryModule.VCSRepo.Tags` by @hashimoon [#789](https://github.com/hashicorp/go-tfe/pull/789)
5+
* Fix nil dereference panic within `StateVersions` `upload` after not handling certain state version create errors
76

87
# v.1.35.0
98
## Features

state_version.go

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ func (s *stateVersions) Upload(ctx context.Context, workspaceID string, options
287287
if strings.Contains(err.Error(), "param is missing or the value is empty: state") {
288288
return nil, ErrStateVersionUploadNotSupported
289289
}
290+
return nil, err
290291
}
291292

292293
g, _ := errgroup.WithContext(ctx)

0 commit comments

Comments
 (0)