Skip bad decoded frames, but not exit
[anna.git] / example / diameter / batchConverter / main.cpp
index f909d89..85f7948 100644 (file)
@@ -70,10 +70,11 @@ void _exit(const std::string &message, int resultCode = 1) {
 // Decodes a diameter message coming from a datablock
 void decodeDataBlock(const anna::DataBlock &db/*, unsigned int & detectedApplicationId*/) throw() {
   try {
-    G_codecMsg.clear(); // perhaps we will need another codec engine ...
+    G_codecMsg.clear();
     G_codecMsg.decode(db);
   } catch(RuntimeException &ex) {
-    _exit(ex.asString());
+    std::cerr << ex.asString() << std::endl << std::endl; 
+    //_exit(ex.asString());
   }
 }