Skip to content

Commit

Permalink
Fix error message for decoded price length
Browse files Browse the repository at this point in the history
  • Loading branch information
matipan committed Nov 5, 2020
1 parent 7210a87 commit 55192b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doubleclick.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func DecryptPrice(icKey, ecKey, encPrice []byte) (uint64, error) {
}

if len(encPrice) != 38 {
return 0, fmt.Errorf("%w: invalid length, expected 28 got %d", ErrInvalidPrice, len(encPrice))
return 0, fmt.Errorf("%w: invalid encoded price length, expected 38 got %d", ErrInvalidPrice, len(encPrice))
}

dprice := make([]byte, base64.RawURLEncoding.DecodedLen(len(encPrice)))
Expand Down

0 comments on commit 55192b3

Please sign in to comment.