From f65015dadd07a5f307a15fe3b06bb79fed9d890a Mon Sep 17 00:00:00 2001 From: Florent Lamiraux <florent@laas.fr> Date: Fri, 21 Jul 2017 12:13:14 +0200 Subject: [PATCH] Make exception message more explicit in Edge::build. --- src/graph/edge.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graph/edge.cc b/src/graph/edge.cc index 1a3c5cd7..f0fad668 100644 --- a/src/graph/edge.cc +++ b/src/graph/edge.cc @@ -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 ()); -- GitLab