Skip to content
Snippets Groups Projects
Commit e3983c1a authored by Jan Trávníček's avatar Jan Trávníček
Browse files

detains when param and result can't be connected

parent dbe1c9a6
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmHelper::eval ( co
i = 0;
for ( const std::shared_ptr < abstraction::OperationAbstraction > & param : casted_params ) {
if ( ! algo->attachInput ( param, i, moves [ i ] ) )
throw exception::CommonException ( "Can't connect param at " + ext::to_string ( i ) + " of algorithm " + name + " with result of type " + param->getReturnType ( ) + "." );
throw exception::CommonException ( "Can't connect param " + algo->getParamType ( i ) + " at " + ext::to_string ( i ) + " of algorithm " + name + " with result of type " + param->getReturnType ( ) + "." );
++ i;
}
 
......
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