Skip to content

Commit de4fd81

Browse files
committed
nit
1 parent e90144c commit de4fd81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keytransform/keytransform.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package keytransform
22

33
import (
44
"context"
5-
"fmt"
5+
"errors"
66

77
ds "github.com/ipfs/go-datastore"
88
dsq "github.com/ipfs/go-datastore/query"
@@ -229,7 +229,7 @@ func (d *Datastore) Batch(ctx context.Context) (ds.Batch, error) {
229229
func (d *Datastore) NewTransaction(ctx context.Context, readOnly bool) (ds.Txn, error) {
230230
tds, ok := d.child.(ds.TxnDatastore)
231231
if !ok {
232-
return nil, fmt.Errorf("txn not supported")
232+
return nil, errors.New("keytransform: transaction feature not supported")
233233
}
234234

235235
childTxn, err := tds.NewTransaction(ctx, readOnly)

0 commit comments

Comments
 (0)