Skip to content

Commit f00697f

Browse files
committed
multi: fix multi error fmt.Errorf wrapping misuse
1 parent 08c28ee commit f00697f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

proof/verifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func (p *Proof) verifyGenesisGroupKey(groupVerifier GroupVerifier) error {
356356
groupKey := p.Asset.GroupKey.GroupPubKey
357357
err := groupVerifier(&groupKey)
358358
if err != nil {
359-
return fmt.Errorf("%w: %v", ErrGroupKeyUnknown, err)
359+
return fmt.Errorf("%w: %s", ErrGroupKeyUnknown, err.Error())
360360
}
361361

362362
return nil

tapgarden/caretaker.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,9 @@ func GenGroupVerifier(ctx context.Context,
14171417
// tweaked group key.
14181418
_, err = mintingStore.FetchGroupByGroupKey(ctx, groupKey)
14191419
if err != nil {
1420-
return fmt.Errorf("%x: group verifier: %v: %w",
1421-
assetGroupKey[:], err, ErrGroupKeyUnknown)
1420+
return fmt.Errorf("%x: group verifier: %s: %w",
1421+
assetGroupKey[:], err.Error(),
1422+
ErrGroupKeyUnknown)
14221423
}
14231424

14241425
_, _ = assetGroups.Put(assetGroupKey, emptyCacheVal{})

0 commit comments

Comments
 (0)