Add isRpcError().

This commit is contained in:
Arthur Britto
2013-02-28 16:40:51 -08:00
parent cf2a07fbff
commit 1571ae4a9a
2 changed files with 7 additions and 0 deletions

View File

@@ -88,4 +88,9 @@ Json::Value rpcError(int iError, Json::Value jvResult)
return jvResult;
}
bool isRpcError(Json::Value jvResult)
{
return jvResult.isObject() && jvResult.isMember("error");
}
// vim:ts=4