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


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

add exit failure

Location:
trunk/demos/PidStandalone
Files:
2 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
  • trunk/demos/PidStandalone/uav/src/main.cpp

    r236 r291  
    115115    headless = headlessArg.getValue();
    116116
    117   } catch (ArgException &e) // catch any exceptions
    118   {
     117  } catch (ArgException &e) {
    119118    cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     119    exit(EXIT_FAILURE);
    120120  }
    121121}
Note: See TracChangeset for help on using the changeset viewer.