Merge pull request #1106 from lucas-clemente/regenerate-error-codes

regenerate the qerr error codes
This commit is contained in:
Marten Seemann
2018-01-08 15:52:28 +07:00
committed by GitHub

View File

@@ -1,8 +1,8 @@
// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT
// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT.
package qerr
import "fmt"
import "strconv"
const (
_ErrorCode_name_0 = "InternalErrorStreamDataAfterTerminationInvalidPacketHeaderInvalidFrameDataInvalidFecDataInvalidRstStreamDataInvalidConnectionCloseDataInvalidGoawayDataInvalidAckDataInvalidVersionNegotiationPacketInvalidPublicRstPacketDecryptionFailureEncryptionFailurePacketTooLarge"
@@ -19,7 +19,6 @@ var (
_ErrorCode_index_2 = [...]uint16{0, 15, 37, 57, 75, 96, 112, 127, 147, 167, 191, 226, 250, 279, 309, 340, 366, 385, 410, 425, 445, 457, 475, 505, 530, 547}
_ErrorCode_index_3 = [...]uint16{0, 14, 29, 50, 65, 90, 119, 158, 184, 208, 231, 249, 279, 301, 322, 340, 366, 390, 425}
_ErrorCode_index_4 = [...]uint16{0, 16, 45, 78, 97, 114, 144, 169, 192, 215, 238, 256, 276, 292, 308, 346, 379, 410, 448, 459, 477, 498, 532}
_ErrorCode_index_5 = [...]uint8{0, 34}
)
func (i ErrorCode) String() string {
@@ -42,6 +41,6 @@ func (i ErrorCode) String() string {
case i == 97:
return _ErrorCode_name_5
default:
return fmt.Sprintf("ErrorCode(%d)", i)
return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
}
}