Skip to content

Commit

Permalink
internal/modsdir: Fix Dropped Error (hashicorp#24600)
Browse files Browse the repository at this point in the history
* internal/modsdir: fix dropped error

* fix typo to unmarshalling

Co-authored-by: Daniel Dreier <[email protected]>
  • Loading branch information
alrs and danieldreier authored Jun 4, 2020
1 parent dc3ce1b commit 3ddfa66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/modsdir/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ func ReadManifestSnapshot(r io.Reader) (Manifest, error) {

var read manifestSnapshotFile
err = json.Unmarshal(src, &read)

if err != nil {
return nil, fmt.Errorf("error unmarshalling snapshot: %v", err)
}
new := make(Manifest)
for _, record := range read.Records {
if record.VersionStr != "" {
Expand Down

0 comments on commit 3ddfa66

Please sign in to comment.