mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-05-21 19:36:21 +02:00
Fixed error reporting for fastnetmon_client
This commit is contained in:
parent
f8f8558be1
commit
3b7df0d887
|
@ -90,7 +90,13 @@ int main(int argc, char** argv) {
|
|||
reading_file.open(cli_stats_file_path.c_str(), std::ifstream::in);
|
||||
|
||||
if (!reading_file.is_open()) {
|
||||
std::cout << "Can't open fastnetmon stats file: " << cli_stats_file_path;
|
||||
std::string error_message = "Can't open fastnetmon stats file: " + cli_stats_file_path;
|
||||
|
||||
addstr(error_message.c_str());
|
||||
|
||||
// update screen
|
||||
refresh();
|
||||
continue;
|
||||
}
|
||||
|
||||
std::string line = "";
|
||||
|
|
Loading…
Reference in New Issue