From e000b83ffb08e77fcdfce5a52a574517f112ad4a Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Tue, 9 Feb 2016 11:16:47 -0800 Subject: [PATCH] Improve an error message --- transport/http_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/http_util.go b/transport/http_util.go index f9d9fdf0..f1233fa4 100644 --- a/transport/http_util.go +++ b/transport/http_util.go @@ -143,7 +143,7 @@ func newHPACKDecoder() *hpackDecoder { switch f.Name { case "content-type": if !strings.Contains(f.Value, "application/grpc") { - d.err = StreamErrorf(codes.FailedPrecondition, "transport: received the unexpected header") + d.err = StreamErrorf(codes.FailedPrecondition, "transport: received the unexpected content-type %q", f.Value) return } case "grpc-encoding":