diff --git a/example/simple_chat_demo.cpp b/example/simple_chat_demo.cpp index 5c8a735c..7c0c7464 100644 --- a/example/simple_chat_demo.cpp +++ b/example/simple_chat_demo.cpp @@ -178,7 +178,7 @@ bool process_args(int argc, char* const argv[], std::string& ip_addr, int main(int argc, char* argv[]) { const std::string LOCAL = "[local] "; const std::string SYSTEM = "[system] "; - const std::string ERROR = "[error] "; + const std::string ERROR_MSG = "[error] "; const std::string DELIM = "\a"; // alert (bell) const std::string NO_CONNECTION = "no connection..." + DELIM; const std::string ABORT = "abort: too many errors"; @@ -280,7 +280,7 @@ int main(int argc, char* argv[]) { std::string err_text = err.category().name(); err_text += ": " + std::to_string(err.value()) + ", " + err.message() + DELIM; - screen.insert_scroll_line(err_text, ERROR); + screen.insert_scroll_line(err_text, ERROR_MSG); screen.draw_screen(); } };