Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't leave an empty catch block.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 3 Jun 2019 11:37:07 +0000 (13:37 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 3 Jun 2019 11:37:07 +0000 (13:37 +0200)
src/xbt/exception.cpp

index beec1e4..6d9272f 100644 (file)
@@ -105,6 +105,7 @@ void log_exception(e_xbt_log_priority_t prio, const char* context, std::exceptio
   }
   catch (...) {
     // Don't log exceptions we got when trying to log exception
+    XBT_LOG(prio, "Ignoring exception caught while while trying to log an exception!");
   }
 }