Empty response message when there's no error code value
This commit is contained in:
parent
ada4338acd
commit
6a9cbf40c2
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ void rai::rpc_handler::response_errors ()
|
|||
if (ec || response_l.empty ())
|
||||
{
|
||||
boost::property_tree::ptree response_error;
|
||||
response_error.put ("error", ec.message ());
|
||||
response_error.put ("error", ec ? ec.message () : "Empty response");
|
||||
response (response_error);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue