diff --git a/client/client.cpp b/client/client.cpp index 2ff6ceb..336145d 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -78,8 +78,7 @@ void CClient::run(const std::string& ip, const std::string& port) request_update_list(vec[2], std::stoi(vec[1])); continue; } - logger_->error("input's invalid format."); - continue; + logger_->error("No matched cmd, May be param size incorrect."); } else if (vec.size() == 2) { if (vec[0] == "Down") { down_task(vec[1]); @@ -89,8 +88,9 @@ void CClient::run(const std::string& ip, const std::string& port) up_task(cmd_input); continue; } + logger_->error("No matched cmd, May be param size incorrect."); } else { - logger_->error("No matched cmd."); + logger_->error("No matched cmd, May be param size incorrect."); } } client_->disconnect();