Skip to content

Commit

Permalink
use correct format specifier for error
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Aug 27, 2024
1 parent 6af7893 commit c464f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/shamir/keyshares.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewKeySharesFromBackupFormat(shares []string) (keyShares *KeyShares, error

x, y, tInt, i, err := decodeShare(share)
if err != nil {
return nil, fmt.Errorf("failed to decode share %d: %e", idx, err)
return nil, fmt.Errorf("failed to decode share %d: %w", idx, err)
}

if idx != 0 && threshold != tInt {
Expand Down

0 comments on commit c464f11

Please sign in to comment.