Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/simple_chat_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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();
}
};
Expand Down