Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: grpc/prpc/encoding.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: copyright Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: grpc/prpc/encoding.go
diff --git a/grpc/prpc/encoding.go b/grpc/prpc/encoding.go
index 0d99b819b701585640a96c191b1d6c18fde34d6a..4395e4ef7da997e3105a16a52d7125a532f0c1b6 100644
--- a/grpc/prpc/encoding.go
+++ b/grpc/prpc/encoding.go
@@ -88,7 +88,7 @@ func respondMessage(msg proto.Message, format Format) *response {
res.body = buf.Bytes()
default:
- panic(fmt.Errorf("impossible: invalid format %s", format))
+ panic(fmt.Errorf("impossible: invalid format %d", format))
}
if err != nil {
« grpc/grpcutil/errors.go ('K') | « grpc/prpc/client_test.go ('k') | grpc/prpc/server.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698