From 93b7e18532b8dbdf3c7fdca415966fafe4249069 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Wed, 8 Nov 2023 15:08:01 -0800 Subject: [PATCH] standardize error messages --- util/readrecordbs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/readrecordbs.go b/util/readrecordbs.go index 8e5a077c7..ee92cf159 100644 --- a/util/readrecordbs.go +++ b/util/readrecordbs.go @@ -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 {