Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
dcf792a
Parents:
e1e506b
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/24/21 13:21:32)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Added more info to "missing config entry" exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    re1e506b r3be4078  
    1111static vtable(Missing_Config_Entries) Missing_Config_Entries_vt;
    1212
    13 void ?{}( Missing_Config_Entries & this ) with ( this ) {
     13void ?{}( Missing_Config_Entries & this, unsigned int num_missing ) with ( this ) {
    1414        virtual_table = &Missing_Config_Entries_vt;
     15        missing = num_missing;
    1516}
    1617
     
    144145        if ( entries_so_far < num_entries ) {
    145146                delete( kv_pairs );
    146                 throw (Missing_Config_Entries){};
     147                throw (Missing_Config_Entries){ num_entries - entries_so_far };
    147148        }
    148149
Note: See TracChangeset for help on using the changeset viewer.