From 9b8aa717f56866847b1cc2cd99430f3bcbadf237 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Thu, 30 Oct 2008 18:33:28 +0000
Subject: [PATCH] Not finding a depricated config file shouldn't be a fatal
 error.

---
 src/Network/ATC-Main.cxx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/Network/ATC-Main.cxx b/src/Network/ATC-Main.cxx
index 8e1b81cda..ed5ac8d98 100644
--- a/src/Network/ATC-Main.cxx
+++ b/src/Network/ATC-Main.cxx
@@ -95,7 +95,15 @@ void FGATCMain::init_config() {
     if ( envp != NULL ) {
         SGPath atcsim_config( envp );
         atcsim_config.append( ".fgfs-atc610x.xml" );
-        readProperties( atcsim_config.str(), globals->get_props() );
+	try {
+	  SG_LOG(SG_GENERAL, SG_ALERT,
+		 "Warning: loading depricated config file: " <<
+		 atcsim_config.str() );
+	  readProperties( atcsim_config.str(), globals->get_props() );
+	} catch (const sg_exception &e) {
+	  // fail silently, this is an old style config file I want to continue
+	  // to support if it exists.
+	}
     }
 #endif
 }