From 5f297d74f404c16946f2965a08ee9e0bb9df034d Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Wed, 20 Aug 2014 16:47:58 +0200 Subject: [PATCH] Throw logic_error when a configuration does not fit in any graph::Node --- src/graph/node-selector.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graph/node-selector.cc b/src/graph/node-selector.cc index 909ed65..cc29fe8 100644 --- a/src/graph/node-selector.cc +++ b/src/graph/node-selector.cc @@ -50,6 +50,7 @@ namespace hpp { orderedStates_.end() != it; it++) if ((*it)->contains(config)) return *it; + throw std::logic_error ("A configuration has no node"); return NodePtr_t (); } -- GitLab