mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +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