Fix method name in invoke_http_json_rpc

Previously, the method name was printed as an exmpty string because
the input string had already been moved with `std::move`.
This commit is contained in:
Erik de Castro Lopo 2018-01-21 12:31:32 +11:00
parent 32c0f908cd
commit 8f30350d03
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ namespace epee
} }
if(resp_t.error.code || resp_t.error.message.size()) if(resp_t.error.code || resp_t.error.message.size())
{ {
LOG_ERROR("RPC call of \"" << method_name << "\" returned error: " << resp_t.error.code << ", message: " << resp_t.error.message); LOG_ERROR("RPC call of \"" << req_t.method << "\" returned error: " << resp_t.error.code << ", message: " << resp_t.error.message);
return false; return false;
} }
result_struct = resp_t.result; result_struct = resp_t.result;