mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve json exception handling
This commit is contained in:
@@ -363,6 +363,7 @@ int PathRequest::parseJson (Json::Value const& jvParams)
|
||||
Currency srcCurrencyID;
|
||||
if (! c.isObject() ||
|
||||
! c.isMember(jss::currency) ||
|
||||
! c[jss::currency].isString() ||
|
||||
! to_currency(srcCurrencyID, c[jss::currency].asString()))
|
||||
{
|
||||
jvStatus = rpcError (rpcSRC_CUR_MALFORMED);
|
||||
|
||||
Reference in New Issue
Block a user