superctr / ctrmml

MML compiler
GNU General Public License v2.0
22 stars 4 forks source link

mdslink: crash while loading undefined instrument #2

Open superctr opened 4 years ago

superctr commented 4 years ago

Crashes with a C++ runtime error if an undefined instrument is referenced in MML input:

terminate called after throwing an instance of 'std::out_of_range'
  what():  map::at

This does not happen in mmlc, which will instead silently continue. I think the behavior should be the same in both programs: either mdslink should silently continue or we should throw InputError in both programs when this happens (I prefer this).