Changeset 291 in flair-src for trunk/demos/PidStandalone/simulator


Ignore:
Timestamp:
01/09/19 13:58:48 (3 years ago)
Author:
Sanahuja Guillaume
Message:

add exit failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/PidStandalone/simulator/src/main.cpp

    r236 r291  
    8484#endif
    8585
    86         } catch (ArgException &e)  // catch any exceptions
    87         { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; }
     86        } catch (ArgException &e) {
     87        cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     88        exit(EXIT_FAILURE);   
     89    }
    8890}
    8991
Note: See TracChangeset for help on using the changeset viewer.