Skip to content
Snippets Groups Projects
Commit 3bec7545 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Make error message more explicit.

     * src/signal/signal-caster.cpp.
parent 878c1e43
No related branches found
No related tags found
No related merge requests found
......@@ -89,8 +89,10 @@ any SignalCaster::cast(const type_info& type, istringstream& iss) {
if ( it == functions_.end() )
{
std::string msg("type " + std::string(type_name) +
" not in functions_ map.");
throw ExceptionSignal(ExceptionSignal::BAD_CAST,
"caster not in functions_ map.");
msg);
}
//TODO: throw "cast not registered" exception
return (*it).second.get<1>()(iss); // call cast function (tuple index 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment