Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rf26421f r3dd8f42  
    4040#include "CodeTools/TrackLoc.h"             // for fillLocations
    4141#include "Common/CodeLocationTools.hpp"     // for forceFillCodeLocations
     42#include "Common/CompilerError.h"           // for CompilerError
    4243#include "Common/DeclStats.hpp"             // for printDeclStats
    4344#include "Common/ResolvProtoDump.hpp"       // for dumpAsResolverProto
    4445#include "Common/Stats.h"                   // for Stats
     46#include "Common/UnimplementedError.h"      // for UnimplementedError
    4547#include "Common/utility.h"                 // for deleteAll, filter, printAll
    4648#include "Concurrency/Actors.hpp"           // for implementActors
     
    478480                } // if
    479481                return EXIT_FAILURE;
     482        } catch ( UnimplementedError & e ) {
     483                cout << "Sorry, " << e.get_what() << " is not currently implemented" << endl;
     484                if ( output != &cout ) {
     485                        delete output;
     486                } // if
     487                return EXIT_FAILURE;
     488        } catch ( CompilerError & e ) {
     489                cerr << "Compiler Error: " << e.get_what() << endl;
     490                cerr << "(please report bugs to [REDACTED])" << endl;
     491                if ( output != &cout ) {
     492                        delete output;
     493                } // if
     494                return EXIT_FAILURE;
    480495        } catch ( std::bad_alloc & ) {
    481496                cerr << "*cfa-cpp compilation error* std::bad_alloc" << endl;
Note: See TracChangeset for help on using the changeset viewer.