Skip to content
Snippets Groups Projects
Commit f65015da authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Joseph Mirabel
Browse files

Make exception message more explicit in Edge::build.

parent 3bed15e0
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
#include <sstream>
#include <hpp/pinocchio/configuration.hh>
#include <hpp/core/path-vector.hh>
#include <hpp/core/path-validation.hh>
......@@ -282,6 +283,7 @@ namespace hpp {
ConfigurationIn_t q2)
const
{
using pinocchio::displayConfig;
core::SteeringMethodPtr_t sm (steeringMethod_->get());
if (!sm) {
buildPathConstraint ();
......@@ -304,7 +306,8 @@ namespace hpp {
}
} else {
std::ostringstream oss;
oss << "The initial configuration does not satisfy the constraints of"
oss << "The initial configuration " << displayConfig (q1)
<< " does not satisfy the constraints of"
" edge " << name () << "." << std::endl;
oss << "The graph is probably malformed";
throw std::runtime_error (oss.str ().c_str ());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment