don't panic 🤓

fixes #93
This commit is contained in:
Lucas Clemente
2016-05-18 18:29:42 +02:00
parent 3dc50821d6
commit 7a97f34fac
15 changed files with 71 additions and 39 deletions

View File

@@ -102,7 +102,7 @@ func (f *AckFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error
}
if rangeCounter != uint8(numRanges) {
panic("Inconsistent number of NACK ranges written.")
return errors.New("BUG: Inconsistent number of NACK ranges written")
}
// TODO: Remove once we drop support for <32