diff --git a/repertory/repertory/include/cli/unmount.hpp b/repertory/repertory/include/cli/unmount.hpp index c8900dd7..10dc3c96 100644 --- a/repertory/repertory/include/cli/unmount.hpp +++ b/repertory/repertory/include/cli/unmount.hpp @@ -41,6 +41,7 @@ unmount(std::vector /* 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 /* args */, const std::string &data_directory, ret = exit_code::mount_active; } else { std::cout << " done!" << std::endl; - std::cout << static_cast(rpc_response_type::success) << std::endl; - std::cout << response.data.dump(2) << std::endl; + std::cout << static_cast(orig_response.response_type) << std::endl; + std::cout << orig_response.data.dump(2) << std::endl; } } else { std::cerr << response.data.dump(2) << std::endl;