More comprehensive error message in VST parser (connector discrepencies).

This commit is contained in:
Jean-Paul Chaput 2021-06-06 10:46:39 +02:00
parent 9b8ea64545
commit fc445a2285
1 changed files with 6 additions and 0 deletions

View File

@ -854,6 +854,12 @@ association_element
<< " Port map assignment discrepency "
<< "instance:" << Vst::states->_instanceNets.size()
<< " vs. model:" << Vst::states->_masterNets.size();
message << "\nModel:";
for ( Net* net : Vst::states->_masterNets )
message << " \"" << net->getName() << "\"";
message << "\nInstance:";
for ( Net* net : Vst::states->_instanceNets )
message << " \"" << net->getName() << "\"";
throw Error( message.str() );
}