From 62e691403d386dc32ee809c555eed88c208824ea Mon Sep 17 00:00:00 2001 From: chorst Date: Mon, 7 Jan 2019 16:30:06 -0800 Subject: [PATCH] Change hardcoded fallback error to match new syntax --- gateway/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/errors.go b/gateway/errors.go index da7adf8d..f4e9c5e3 100644 --- a/gateway/errors.go +++ b/gateway/errors.go @@ -87,7 +87,7 @@ func (h *ProtoErrorHandler) StreamHandler(ctx context.Context, headerWritten boo } func (h *ProtoErrorHandler) writeError(ctx context.Context, headerWritten bool, marshaler runtime.Marshaler, rw http.ResponseWriter, err error) { - const fallback = `{"code":"INTERNAL","status":500,"message":"%s"}` + const fallback = `{"error":[{"message":"%s"}]}` st, ok := status.FromError(err) if !ok {