Errors flushed through cerr not cout.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 18 Mar 2011 11:30:55 +0000 (12:30 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 18 Mar 2011 11:30:55 +0000 (12:30 +0100)
src/config/configurationreader.cpp

index 815568b..5ee9a12 100644 (file)
@@ -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