Skip to content
Snippets Groups Projects
Commit 3ff69b7c authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Make error message more expressive.

parent ef93d4c5
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,7 @@ namespace dynamicgraph { ...@@ -234,7 +234,7 @@ namespace dynamicgraph {
valueVector.push_back(value); valueVector.push_back(value);
} catch(const std::exception& exc) { } catch(const std::exception& exc) {
std::stringstream ss; std::stringstream ss;
ss << "Error while parsing argument " << iParam+1 << ": " ss << "while parsing argument " << iParam+1 << ": expecting "
<< exc.what() << "."; << exc.what() << ".";
PyErr_SetString(dgpyError, ss.str().c_str()) ; PyErr_SetString(dgpyError, ss.str().c_str()) ;
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment