Skip to content

Commit

Permalink
Added error coded exit on exception in ossim-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarkramer committed Feb 27, 2018
1 parent d839bda commit 8db470a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/ossim-cli/ossim-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ using namespace std;
#include <ossim/base/ossimStdOutProgress.h>
#include <ossim/base/ossimTimer.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimString.h>
#include <ossim/util/ossimToolRegistry.h>
#include <ossim/base/ossimException.h>
#include <ossim/base/ossimNotify.h>

#define CINFO ossimNotify(ossimNotifyLevel_INFO)
#define CWARN ossimNotify(ossimNotifyLevel_WARN)
Expand Down Expand Up @@ -162,12 +160,13 @@ int main(int argc, char *argv[])
}
catch (const ossimException& e)
{
ossimNotify(ossimNotifyLevel_FATAL)<<e.what()<<endl;
CFATAL<<e.what()<<endl;
exit(1);
}
catch( ... )
{
CFATAL << "Caught unknown exception!" << endl;
exit(1);
}

if (status_ok)
Expand Down

0 comments on commit 8db470a

Please sign in to comment.