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

[JES] For now, check by error code value. Team is working on determining if...

[JES] For now, check by error code value. Team is working on determining if those codes are unique/usable/suitable for this case but it's working on testing for now
parent 8fb43bef
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....
......@@ -46,7 +46,7 @@ export function jsonRpc(uri, {method, id, params, fetchMethod=fetch}) {
throw new Error(`Invalid response id: ${ rpcRes.id }`);
}
if (rpcRes.error) {
if (rpcRes.error.data.toString().includes('does not exist'))
if (rpcRes.error.code === -32602)
{
//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
......
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