Also capture report

nix
Owen Green 6 years ago
parent a3ee1868f1
commit eb6aeb0304

@ -1294,7 +1294,7 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase<C>
auto& report = std::cout; auto& report = std::cout;
report << "ERROR: " << msg->name << " type signature incorrect.\nExpect: ("; report << "ERROR: " << msg->name << " type signature incorrect.\nExpect: (";
size_t i{0}; size_t i{0};
ForEach(args, [&i,&expectedArgCount](auto& x){ ForEach(args, [&i,&expectedArgCount,&report](auto& x){
report << ParamReader<sc_msg_iter*>::argTypeToString(x); report << ParamReader<sc_msg_iter*>::argTypeToString(x);
if(i < ( expectedArgCount - 1 ) ) if(i < ( expectedArgCount - 1 ) )
{ {

Loading…
Cancel
Save