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


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

add exit failure

Location:
trunk/demos/Gps
Files:
2 edited

Legend:

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

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

    r185 r291  
    9494        } catch (ArgException &e) { // catch any exceptions
    9595        cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
     96        exit(EXIT_FAILURE);
    9697        }
    9798}
Note: See TracChangeset for help on using the changeset viewer.