Verified Commit ec2e073b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

types: raise exception when needed

parent 10db4284
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment