this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

goat: small error improvements (#923)

simple

authored by

bnewbold and committed by
GitHub
33707e38 5dc531ba

+3 -3
+3 -3
cmd/goat/repo.go
··· 185 185 } 186 186 fi, err := os.Open(carPath) 187 187 if err != nil { 188 - return err 188 + return fmt.Errorf("failed to open CAR file: %w", err) 189 189 } 190 190 191 191 // read repository tree in to memory 192 192 r, err := repo.ReadRepoFromCar(ctx, fi) 193 193 if err != nil { 194 - return err 194 + return fmt.Errorf("failed to parse repo CAR file: %w", err) 195 195 } 196 196 197 197 err = r.ForEach(ctx, "", func(k string, v cid.Cid) error { ··· 199 199 return nil 200 200 }) 201 201 if err != nil { 202 - return err 202 + return fmt.Errorf("failed to read records from repo CAR file: %w", err) 203 203 } 204 204 return nil 205 205 }