mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add isRpcError().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user