Skip to content
Snippets Groups Projects
Verified Commit ec2e073b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

types: raise exception when needed

parent 10db4284
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,10 @@ namespace eigenpy
if(array_scalar_type != src_obj_type)
{
std::stringstream ss;
ss << "The input type is of wrong type. ";
ss << "The expected type is " << bp::type_info(typeid(T)).name() << std::endl;
eigenpy::Exception(ss.str());
return -1;
}
......
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