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


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

add exit failure

Location:
trunk/demos/SimpleFleet
Files:
2 edited

Legend:

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

    r158 r291  
    7777
    7878
    79         } catch (ArgException &e)  // catch any exceptions
    80         { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; }
     79        } catch (ArgException &e) {
     80        cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     81        exit(EXIT_FAILURE);
     82    }
    8183}
    8284
  • trunk/demos/SimpleFleet/uav/src/main.cpp

    r137 r291  
    100100        } catch (ArgException &e) { // catch any exceptions
    101101        cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     102        exit(EXIT_FAILURE);
    102103        }
    103104}
Note: See TracChangeset for help on using the changeset viewer.