Ignore:
Timestamp:
Jan 9, 2019, 1:58:48 PM (6 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.