mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Better error messages for out of range integral values
* This change passes detailed error messages from the JSON parser on the server side, back to the client for inclusion into the reply's error message. * Errors originating from the server's inability to parse are reclassified from rpcINTERNAL to rpcINVALID_PARAMS.
This commit is contained in:
@@ -569,7 +569,8 @@ ServerHandlerImp::processRequest (Port const& port,
|
||||
! jsonOrig ||
|
||||
! (jsonOrig.isObject () || jsonOrig.isArray()))
|
||||
{
|
||||
HTTPReply (400, "Unable to parse request", output, rpcJ);
|
||||
HTTPReply (400, "Unable to parse request: " +
|
||||
reader.getFormatedErrorMessages(), output, rpcJ);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user