Prevent possible empty responses
This commit is contained in:
parent
16bb25aeee
commit
cf24370750
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ void rai::error_response (std::function<void(boost::property_tree::ptree const &
|
|||
|
||||
void rai::rpc_handler::response_errors ()
|
||||
{
|
||||
if (ec)
|
||||
if (ec || response_l.empty ())
|
||||
{
|
||||
boost::property_tree::ptree response_error;
|
||||
response_error.put ("error", ec.message ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue