fix response data
This commit is contained in:
		| @@ -41,6 +41,7 @@ unmount(std::vector<const char *> /* args */, const std::string &data_directory, | ||||
|                           .user = user}) | ||||
|                       .unmount(); | ||||
|   if (response.response_type == rpc_response_type::success) { | ||||
|     auto orig_response{response}; | ||||
|     std::cout << "waiting for unmount ..." << std::flush; | ||||
|     for (std::uint8_t retry{0U}; | ||||
|          retry < retry_count && | ||||
| @@ -60,8 +61,8 @@ unmount(std::vector<const char *> /* args */, const std::string &data_directory, | ||||
|       ret = exit_code::mount_active; | ||||
|     } else { | ||||
|       std::cout << " done!" << std::endl; | ||||
|       std::cout << static_cast<int>(rpc_response_type::success) << std::endl; | ||||
|       std::cout << response.data.dump(2) << std::endl; | ||||
|       std::cout << static_cast<int>(orig_response.response_type) << std::endl; | ||||
|       std::cout << orig_response.data.dump(2) << std::endl; | ||||
|     } | ||||
|   } else { | ||||
|     std::cerr << response.data.dump(2) << std::endl; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user