From 3ddfa66ca4652b4dc17a0e76557346af5f799d5f Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 4 Jun 2020 07:26:26 -0700 Subject: [PATCH] internal/modsdir: Fix Dropped Error (#24600) * internal/modsdir: fix dropped error * fix typo to unmarshalling Co-authored-by: Daniel Dreier --- internal/modsdir/manifest.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/modsdir/manifest.go b/internal/modsdir/manifest.go index 56332523d..5b0e67573 100644 --- a/internal/modsdir/manifest.go +++ b/internal/modsdir/manifest.go @@ -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 != "" {