summaryrefslogtreecommitdiff
path: root/lib/codereview/codereview.py
diff options
context:
space:
mode:
authorAron Nopanen <aron.nopanen@gmail.com>2009-11-17 11:29:02 -0800
committerAron Nopanen <aron.nopanen@gmail.com>2009-11-17 11:29:02 -0800
commit4f0f7848895208b2c16ede3a928f1c7abf84c0dd (patch)
tree3e59431e89c0d9ffc525dd8a68441ab670e7b0c1 /lib/codereview/codereview.py
parent45822f3abfb1d43455c02a91265cffae7327b168 (diff)
downloadgolang-4f0f7848895208b2c16ede3a928f1c7abf84c0dd.tar.gz
Make non-errored RPC calls return 'nil' error to caller.
Error information is carried from RPC server to client in the string 'Error' field of rpc.Response. An empty string is sent in the success case. This empty string was being returned to the caller (of Client.Call or Client.Go), resulting in a non-nil error response. This change detects an empty-string Response.Error at the client, and translates it into a nil value in Call.Error. Tests updated to check error return in success cases. R=r, rsc http://codereview.appspot.com/154159 Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'lib/codereview/codereview.py')
0 files changed, 0 insertions, 0 deletions