Branch: refs/heads/master
Home: https://github.com/conformal/btcjson
Commit: 334a1c1f20a2916863e8571bd49962e485ff3d81
https://github.com/conformal/btcjson/commit/334a1c1f20a2916863e8571bd49962e485ff3d81
Author: Josh Rickmar <[email protected]>
Date: 2013-10-29 (Tue, 29 Oct 2013)
Changed paths:
M jsoncmd.go
M jsoncmd_test.go
Log Message:
-----------
Return basic Cmd from ParseMarshaledCmd when possible.
This changes the behavior of ParseMarshaledCmd to always return a
non-nil Cmd whenever unmarshaling a valid JSON-RPC message succeeds.
This is needed for RPC server code to reply back with detailed errors
to clients using the Method and Id methods of the Cmd interface.