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 8fc6c8e commit 639e195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion odm_georef/src/Georef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,22 @@ int Georef::run(int argc, char *argv[])
}
catch (const GeorefException& 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 Georef:\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 Expand Up @@ -1082,4 +1085,3 @@ void Georef::printGeorefSystem()
}



0 comments on commit 639e195

Please sign in to comment.