graceful exit with no gcps

pull/89/head
Stephen Mather 2015-03-03 21:28:52 -05:00
rodzic 8fc6c8e878
commit 639e195e02
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -238,12 +238,14 @@ 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_);
@ -251,6 +253,7 @@ int Georef::run(int argc, char *argv[])
}
catch (...)
{
log_.setIsPrintingInCout(true);
log_ << "Unknown error, terminating:\n";
log_.print(logFile_);
return EXIT_FAILURE;
@ -1082,4 +1085,3 @@ void Georef::printGeorefSystem()
}