fork of indigo with slightly nicer lexgen
0
fork

Configure Feed

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

improve some repo error messages (#922)

I had these in my local working tree; @brianolson also added some error
messages in between. I think mine might be clearer?

authored by bnewbold.net and committed by

GitHub fd270fbc 9e3b84fd

+3 -3
+3 -3
repo/repo.go
··· 80 80 81 81 br, err := car.NewBlockReader(r) 82 82 if err != nil { 83 - return cid.Undef, fmt.Errorf("IngestRepo:NewBlockReader: %w", err) 83 + return cid.Undef, fmt.Errorf("opening CAR block reader: %w", err) 84 84 } 85 85 86 86 for { ··· 89 89 if err == io.EOF { 90 90 break 91 91 } 92 - return cid.Undef, fmt.Errorf("IngestRepo:Next: %w", err) 92 + return cid.Undef, fmt.Errorf("reading block from CAR: %w", err) 93 93 } 94 94 95 95 if err := bs.Put(ctx, blk); err != nil { 96 - return cid.Undef, fmt.Errorf("IngestRepo:Put: %w", err) 96 + return cid.Undef, fmt.Errorf("copying block to store: %w", err) 97 97 } 98 98 } 99 99