mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 09:24:47 +00:00
epee: set jsonrpc to "2.0" in parse error return data
This commit is contained in:
parent
702a41034d
commit
e7c0fcd8f3
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@
|
|||
if(!ps.load_from_json(query_info.m_body)) \
|
||||
{ \
|
||||
boost::value_initialized<epee::json_rpc::error_response> rsp; \
|
||||
static_cast<epee::json_rpc::error_response&>(rsp).jsonrpc = "2.0"; \
|
||||
static_cast<epee::json_rpc::error_response&>(rsp).error.code = -32700; \
|
||||
static_cast<epee::json_rpc::error_response&>(rsp).error.message = "Parse error"; \
|
||||
epee::serialization::store_t_to_json(static_cast<epee::json_rpc::error_response&>(rsp), response_info.m_body); \
|
||||
|
|
Loading…
Reference in a new issue