New issue 37 by rgra...@gmail.com: JsonRpcClient error not throwing an
exception
http://code.google.com/p/jayrock/issues/detail?id=37
What steps will reproduce the problem?
Invoke a JSON RPC which responds with an error in the format:
{
result: null,
error: { message: 'Some message here', code: 123 },
id: 1
}
What is the expected output? What do you see instead?
Expected an exception to be thrown.
Instead a null is returned.
Please provide any additional information below.
Because the result: null is the first item in the collection, it will be
evaluated and returned before the error is evaluated. Fix attached.
Attachments:
JsonRpcClient.cs 5.5 KB
Comment #1 on issue 37 by azizatif: JsonRpcClient error not throwing an
exception
http://code.google.com/p/jayrock/issues/detail?id=37
(No comment was entered for this change.)
Comment #2 on issue 37 by azizatif: JsonRpcClient error not throwing an
Comment #3 on issue 37 by azizatif: JsonRpcClient error not throwing an
exception
http://code.google.com/p/jayrock/issues/detail?id=37
This issue was closed by revision 0df7b70e7394.