Skip to content
Snippets Groups Projects
Commit d21990cf authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Return a response instead of just a blank string. Condenser seems happy with either

parent fb1c52bb
No related branches found
No related tags found
1 merge request!27[JES] Try and examine the error message to see if it's an actual error or not....
...@@ -50,7 +50,7 @@ export function jsonRpc(uri, {method, id, params, fetchMethod=fetch}) { ...@@ -50,7 +50,7 @@ export function jsonRpc(uri, {method, id, params, fetchMethod=fetch}) {
{ {
//hivemind returns an error when tags aren't found, but it's not really an error //hivemind returns an error when tags aren't found, but it's not really an error
//because the http return code was ok, so just return an empty response instead //because the http return code was ok, so just return an empty response instead
return ""; return "{\"id\":" + rpcRes.id + ", \"result\":[], \"jsonrpc\":\"2.0\"}";
} }
throw new RPCError(rpcRes.error); throw new RPCError(rpcRes.error);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment