From 7d9ab37d01bed89a8dca32928a44f0671c930bcf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu>
Date: Mon, 7 Mar 2016 07:46:15 +0000
Subject: [PATCH] Changes to try to catch an unhandled GPSTK exception.

---
 src/asterx1_process.cpp | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/asterx1_process.cpp b/src/asterx1_process.cpp
index fc6144c..d13d368 100644
--- a/src/asterx1_process.cpp
+++ b/src/asterx1_process.cpp
@@ -60,12 +60,12 @@ void CAsteRx1Process::generate_gps_nav(gpstk::EngEphemeris &ephemeris,TGPSNav &g
     gps_nav.wnt_oe=gps_epoch.GPSModWeek();
   }catch(gpstk::InvalidParameter &e){
     /* ignore the Error for including subframes 4 and 5 */
-    //std::cout << e.what() << std::endl;
+    std::cout << "generate GPS NAV" << e.what() << std::endl;
   }catch(gpstk::InvalidRequest &e){
     /* this should not happen */
-    //std::cout << e.what() << std::endl;
+    std::cout << "generate GPS NAV" << e.what() << std::endl;
   }catch(...){
-    std::cout << "Exception" << std::endl;
+    std::cout << "generate GPS NAV Exception" << std::endl;
   }
 }
 
@@ -117,10 +117,12 @@ void CAsteRx1Process::add_subframe(TGPSFrame &frame)
     }
   }catch(gpstk::InvalidParameter &e){
     /* ignore the Error for including subframes 4 and 5 */
-    //std::cout << e.what() << std::endl;
+    std::cout << "add subframe" << e.what() << std::endl;
   }catch(gpstk::InvalidRequest &e){
     /* this should not happen */
-    //std::cout << e.what() << std::endl;
+    std::cout << "add subframe" << e.what() << std::endl;
+  }catch(...){
+    std::cout << "add subframe Exception" << std::endl;
   }
 }
 
-- 
GitLab