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:
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)
Message:

Removed printing of errors in library code

Bad practice, I believe? Also makes testing easier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    r247d4ac r1764a63  
    9595        } catch( Open_Failure * ex; ex->istream == &in ) {
    9696                delete( kv_pairs );
    97                 serr | "Error: could not open input file '" | config_file | "'";
    9897                throw *ex;
    9998        } // try
     
    122121                        if ( !entries[j].parse( src_value, entries[j].variable ) ) {
    123122                                delete( kv_pairs );
    124                                 serr | "Error: value '" | src_value | "' for key '" | src_key | "' could not be parsed";
    125123                                throw (Parse_Failure){};
    126124                        }
     
    130128                                        && !entries[j].validate( entries[j].variable ) ) {
    131129                                delete( kv_pairs );
    132                                 serr | "Error: config value at key '" | entries[j].key | "' did not pass validation";
    133130                                throw (Validation_Failure){};
    134131                        }
Note: See TracChangeset for help on using the changeset viewer.