mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 22:35:52 +01:00
Remove unused error constants
This commit is contained in:
parent
fde9c645f4
commit
ca03f1df17
1 changed files with 1 additions and 7 deletions
|
|
@ -6,13 +6,11 @@ import (
|
|||
|
||||
// Those are the most common used errors
|
||||
var (
|
||||
ErrNoSigningKey = errors.New("no signing key")
|
||||
ErrBadSignature = errors.New("bad signature")
|
||||
ErrBadMAC = errors.New("bad mac")
|
||||
ErrBadMessageFormat = errors.New("bad message format")
|
||||
ErrBadVerification = errors.New("bad verification")
|
||||
ErrWrongProtocolVersion = errors.New("wrong protocol version")
|
||||
ErrNoSessionKey = errors.New("no session key")
|
||||
ErrEmptyInput = errors.New("empty input")
|
||||
ErrNoKeyProvided = errors.New("no key")
|
||||
ErrBadMessageKeyID = errors.New("bad message key id")
|
||||
|
|
@ -25,12 +23,8 @@ var (
|
|||
ErrBadVersion = errors.New("wrong version")
|
||||
ErrNotBlocksize = errors.New("length != blocksize")
|
||||
ErrNotMultipleBlocksize = errors.New("length not a multiple of the blocksize")
|
||||
ErrBase64InvalidLength = errors.New("base64 decode invalid length")
|
||||
ErrWrongPickleVersion = errors.New("Wrong pickle version")
|
||||
ErrSignatureNotFound = errors.New("signature not found")
|
||||
ErrNotEnoughGoRandom = errors.New("Not enough random data available")
|
||||
ErrWrongPickleVersion = errors.New("wrong pickle version")
|
||||
ErrValueTooShort = errors.New("value too short")
|
||||
ErrInputToSmall = errors.New("input too small (truncated?)")
|
||||
ErrOverflow = errors.New("overflow")
|
||||
ErrBadBase64 = errors.New("Bad base64")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue