Skip to content

Commit

Permalink
standardize error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Nov 8, 2023
1 parent 0355a32 commit 93b7e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/readrecordbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (bs *ReadRecordBstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
}

func (bs *ReadRecordBstore) DeleteBlock(ctx context.Context, c cid.Cid) error {
return fmt.Errorf("deletes not supported")
return fmt.Errorf("deletes not allowed on read-record blockstore")
}

func (bs *ReadRecordBstore) Put(context.Context, blockformat.Block) error {
Expand Down

0 comments on commit 93b7e18

Please sign in to comment.