From c6d9afb36d7f04e469877c650e2c052d1d8a40d5 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 30 Dec 2014 18:14:41 +0100 Subject: [PATCH] minor change in logging: avoid duplicated "Error: " --- src/config/configurationfile.cpp | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config/configurationfile.cpp b/src/config/configurationfile.cpp index 91e2303..99b8ebd 100644 --- a/src/config/configurationfile.cpp +++ b/src/config/configurationfile.cpp @@ -78,8 +78,9 @@ bool ConfigurationFile::process( variables_map *vm ) ifs.open( FileName.c_str() ); if ( !ifs.good() ) { - GlobalLogger.error() << "Error: could not open " << FileName - << " file." << endl; + GlobalLogger.error() << "Could not open " << FileName + << " file. Specify using argument --config-file" + << endl; return false; } @@ -95,7 +96,7 @@ bool ConfigurationFile::process( variables_map *vm ) } catch ( const invalid_option_value &e ) { - GlobalLogger.error() << "Error: invalid option value exception thrown parsing config file:" + GlobalLogger.error() << "Invalid option value exception thrown parsing config file:" << e.what() << endl; return false; } -- 1.7.1