Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: d7d2385fb0ac5797b787407499071b8fb7116638
https://github.com/conformal/btcd/commit/d7d2385fb0ac5797b787407499071b8fb7116638
Author: Josh Rickmar <[email protected]>
Date: 2013-10-29 (Tue, 29 Oct 2013)
Changed paths:
M rpcserver.go
Log Message:
-----------
Return JSON id with errors when possible.
This change unbreaks the case where an unknown command is sent to the
RPC server. Instead of replying back with a nil JSON id, if the
initial unmarshal was successful (and thus, the message was valid
JSON-RPC), the unmarshaled id will be used in the error reply.