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

Unified Diff: server/prpc/method.go

Issue 1605363002: common/prpc, tools/cmd/cproto: prpc client (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: use text template for ast generation Created 4 years, 11 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: server/prpc/method.go
diff --git a/server/prpc/method.go b/server/prpc/method.go
index aa0b5c2f61779991a2fc375ca356a5b8a9974e91..076262c5aef402929e4f2d8354f97464dcab27ef 100644
--- a/server/prpc/method.go
+++ b/server/prpc/method.go
@@ -57,7 +57,7 @@ func (m *method) handle(c context.Context, w http.ResponseWriter, r *http.Reques
res, rawErr := m.desc.Handler(m.service.impl, c, func(msg interface{}) error {
if msg == nil {
- panicf("cannot decode to nil")
+ panicf("msg is nil")
}
// Do not collapse it to one line. There is implicit err type conversion.
if err := readMessage(r, msg.(proto.Message)); err != nil {

Powered by Google App Engine
This is Rietveld 408576698