From b72307a14c5358f1081c81973bbb73c1de82feaf Mon Sep 17 00:00:00 2001 From: Valentin Noel Date: Tue, 10 Dec 2013 11:02:01 +0100 Subject: [PATCH] minor modification for error and warning support in Comparator issue #31 --- libraries/Comparator/src/Comparator/Comparator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Comparator/src/Comparator/Comparator.cpp b/libraries/Comparator/src/Comparator/Comparator.cpp index 71a469c..bb4d439 100644 --- a/libraries/Comparator/src/Comparator/Comparator.cpp +++ b/libraries/Comparator/src/Comparator/Comparator.cpp @@ -175,14 +175,14 @@ void Comparator::checkGroupSize( const ShPtrElement element, file_reader::FileRe { std::stringstream errorMessage; errorMessage << "[comparator] Group size difference: " << sizeDiff << " missing bytes "; - parent->_error = errorMessage.str(); + parent->_error.push_back( errorMessage.str() ); throw std::runtime_error( errorMessage.str() ); } if( sizeDiff < 0 ) { std::stringstream warningMessage; warningMessage << "[comparator] Group size difference: " << abs( sizeDiff ) << " unexpected bytes "; - parent->_warning += warningMessage.str(); + parent->_warning.push_back( warningMessage.str() ); file.goForward( abs( sizeDiff ) ); LOG_WARNING( warningMessage.str() << ": go forward..." ); }