From e111a77cb110b87acd470dcc11a50f17cd26f960 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Fri, 18 Mar 2011 12:30:55 +0100 Subject: [PATCH] Errors flushed through cerr not cout. --- src/config/configurationreader.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.1