change error msg

This commit is contained in:
Alex Grintsvayg 2020-10-06 10:17:50 -04:00
parent 2b3581a692
commit a80e0f5b0d
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -188,7 +188,7 @@ func TrackError(direction string, e error) (shouldLog bool) { // shouldLog is a
errType = errBlobNotFound
} else if strings.Contains(err.Error(), "0-byte blob received") {
errType = errZeroByteBlob
} else if strings.Contains(err.Error(), "QuicError PROTOCOL_VIOLATION") {
} else if strings.Contains(err.Error(), "PROTOCOL_VIOLATION: tried to retire connection") {
errType = errQuicProto
} else if strings.Contains(err.Error(), "invalid character") {
errType = errInvalidCharacter