Skip to content

Commit

Permalink
graceful exit with no gcps
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Mather committed Mar 4, 2015
1 parent 639e195 commit d0ce6d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions odm_orthophoto/src/OdmOrthoPhoto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,22 @@ int OdmOrthoPhoto::run(int argc, char *argv[])
}
catch (const OdmOrthoPhotoException& e)
{
log_.setIsPrintingInCout(true);
log_ << e.what() << "\n";
log_.print(logFile_);
return EXIT_FAILURE;
}
catch (const std::exception& e)
{
log_.setIsPrintingInCout(true);
log_ << "Error in OdmOrthoPhoto:\n";
log_ << e.what() << "\n";
log_.print(logFile_);
return EXIT_FAILURE;
}
catch (...)
{
log_.setIsPrintingInCout(true);
log_ << "Unknown error, terminating:\n";
log_.print(logFile_);
return EXIT_FAILURE;
Expand Down

0 comments on commit d0ce6d4

Please sign in to comment.