go/src
Aron Nopanen c51ee432d1 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
https://golang.org/cl/154159
2009-11-17 11:29:02 -08:00
..
cmd cmd/cc: Fix -I switch to handle a path with blankspaces correctly 2009-11-17 09:02:47 -08:00
lib9 two gopack nits. 2009-11-11 14:48:33 -08:00
libbio convert C runtime to 32-bit runes; 2009-08-31 16:38:50 -07:00
libcgo FreeBSD-specific porting work. 2009-11-17 08:20:58 -08:00
libmach FreeBSD-specific porting work. 2009-11-17 08:20:58 -08:00
pkg Make non-errored RPC calls return 'nil' error to caller. 2009-11-17 11:29:02 -08:00
Make.386 makefile fixes; convert runtime to use new makefiles 2009-08-13 14:41:10 -07:00
Make.amd64 makefile fixes; convert runtime to use new makefiles 2009-08-13 14:41:10 -07:00
Make.arm makefile fixes; convert runtime to use new makefiles 2009-08-13 14:41:10 -07:00
Make.cmd add and use Make.cmd 2009-08-27 11:17:14 -07:00
Make.conf might as well make 6g run faster.... go from gcc -O1 to -O2 2009-09-28 14:36:20 -07:00
Make.pkg Make.pkg: have "make coverage" invoke 6cov with correct binary 2009-11-17 08:39:26 -08:00
all-arm.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
all-nacl.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
all.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
clean.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
make-arm.bash complain if GOARCH != arm. fix build break caused by gomake 2009-11-14 23:08:22 -08:00
make.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
quietgcc.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
run.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
sudo.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00