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


Ignore:
Timestamp:
Jan 9, 2019, 1:58:48 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

add exit failure

Location:
trunk/demos/OpticalFlow
Files:
2 edited

Legend:

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

    r158 r291  
    8585  {
    8686    cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     87    exit(EXIT_FAILURE);
    8788  }
    8889}
  • trunk/demos/OpticalFlow/uav/src/main.cpp

    r137 r291  
    106106        address=addressArg.getValue();
    107107
    108         } catch (ArgException &e)  // catch any exceptions
    109         { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; }
     108        } catch (ArgException &e) {
     109        cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     110        exit(EXIT_FAILURE);
     111    }
    110112}
Note: See TracChangeset for help on using the changeset viewer.