graceful exit with no gcps

Former-commit-id: 639e195e02
gh-pages
Stephen Mather 2015-03-03 21:28:52 -05:00
rodzic 59e4fed50a
commit 0bdbd86d39
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) catch (const GeorefException& e)
{ {
log_.setIsPrintingInCout(true);
log_ << e.what() << "\n"; log_ << e.what() << "\n";
log_.print(logFile_); log_.print(logFile_);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
catch (const std::exception& e) catch (const std::exception& e)
{ {
log_.setIsPrintingInCout(true);
log_ << "Error in Georef:\n"; log_ << "Error in Georef:\n";
log_ << e.what() << "\n"; log_ << e.what() << "\n";
log_.print(logFile_); log_.print(logFile_);
@ -251,6 +253,7 @@ int Georef::run(int argc, char *argv[])
} }
catch (...) catch (...)
{ {
log_.setIsPrintingInCout(true);
log_ << "Unknown error, terminating:\n"; log_ << "Unknown error, terminating:\n";
log_.print(logFile_); log_.print(logFile_);
return EXIT_FAILURE; return EXIT_FAILURE;
@ -1082,4 +1085,3 @@ void Georef::printGeorefSystem()
} }