Skip to content

Commit

Permalink
Display the expected number of parameters when throwing an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
naderman committed Jul 14, 2010
1 parent d3b8920 commit 20e12eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spoac/stm/ObjectVector.cpp
Expand Up @@ -49,7 +49,8 @@ void ObjectVector::validate(ObjectVector::size_type n) const
{
throw ParameterException(
std::string("Incorrect number of parameters: ") +
boost::lexical_cast<std::string>(objects.size())
boost::lexical_cast<std::string>(objects.size()) +
std::string(" expected ") + boost::lexical_cast<std::string>(n)
);
}
}
Expand Down

0 comments on commit 20e12eb

Please sign in to comment.