From: Guilherme Maciel Ferreira Date: Fri, 18 Mar 2011 11:30:55 +0000 (+0100) Subject: Errors flushed through cerr not cout. X-Git-Tag: v1.0~134 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=e111a77cb110b87acd470dcc11a50f17cd26f960;p=pingcheck Errors flushed through cerr not cout. --- diff --git a/src/config/configurationreader.cpp b/src/config/configurationreader.cpp index 815568b..5ee9a12 100644 --- a/src/config/configurationreader.cpp +++ b/src/config/configurationreader.cpp @@ -215,7 +215,7 @@ bool ConfigurationReader::process_command_line( } catch ( std::exception &e ) { - cout << e.what() << endl; + cerr << e.what() << endl; return false; } @@ -241,7 +241,8 @@ bool ConfigurationReader::process_configuration_file( ifstream ifs( config_file_name.c_str() ); if ( !ifs ) { - cout << "Can not open " << config_file_name << " file\n"; + cerr << "Error: could not open " << config_file_name << " file\n" + << endl; return false; } else