Skip to content

Commit

Permalink
minor modification for error and warning support in Comparator
Browse files Browse the repository at this point in the history
issue #31
  • Loading branch information
Valentin Noel committed Dec 10, 2013
1 parent ab9fb52 commit b72307a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/Comparator/src/Comparator/Comparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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..." );
}
Expand Down

0 comments on commit b72307a

Please sign in to comment.