summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/net/http2/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/http2/errors.go')
-rw-r--r--vendor/golang.org/x/net/http2/errors.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/http2/errors.go b/vendor/golang.org/x/net/http2/errors.go
index c789fa33..2663e5d2 100644
--- a/vendor/golang.org/x/net/http2/errors.go
+++ b/vendor/golang.org/x/net/http2/errors.go
@@ -53,6 +53,13 @@ func (e ErrCode) String() string {
return fmt.Sprintf("unknown error code 0x%x", uint32(e))
}
+func (e ErrCode) stringToken() string {
+ if s, ok := errCodeName[e]; ok {
+ return s
+ }
+ return fmt.Sprintf("ERR_UNKNOWN_%d", uint32(e))
+}
+
// ConnectionError is an error that results in the termination of the
// entire connection.
type ConnectionError ErrCode