Changeset 1764a63 for libcfa/src/parseconfig.cfa
- Timestamp:
- Aug 31, 2021, 1:49:10 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- a3f2a3e
- Parents:
- 247d4ac
- git-author:
- Jacob Prud'homme <jafprudhomme@…> (08/10/21 17:02:03)
- git-committer:
- Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/parseconfig.cfa
r247d4ac r1764a63 95 95 } catch( Open_Failure * ex; ex->istream == &in ) { 96 96 delete( kv_pairs ); 97 serr | "Error: could not open input file '" | config_file | "'";98 97 throw *ex; 99 98 } // try … … 122 121 if ( !entries[j].parse( src_value, entries[j].variable ) ) { 123 122 delete( kv_pairs ); 124 serr | "Error: value '" | src_value | "' for key '" | src_key | "' could not be parsed";125 123 throw (Parse_Failure){}; 126 124 } … … 130 128 && !entries[j].validate( entries[j].variable ) ) { 131 129 delete( kv_pairs ); 132 serr | "Error: config value at key '" | entries[j].key | "' did not pass validation";133 130 throw (Validation_Failure){}; 134 131 }
Note: See TracChangeset
for help on using the changeset viewer.