From 639e195e0295dc5061028a5c525e6f0c5c71f2fe Mon Sep 17 00:00:00 2001 From: Stephen Mather Date: Tue, 3 Mar 2015 21:28:52 -0500 Subject: [PATCH] graceful exit with no gcps --- odm_georef/src/Georef.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odm_georef/src/Georef.cpp b/odm_georef/src/Georef.cpp index 8e4be77ba..3f9208ce4 100644 --- a/odm_georef/src/Georef.cpp +++ b/odm_georef/src/Georef.cpp @@ -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() } -