A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't leave an empty catch block.
[simgrid.git]
/
src
/
xbt
/
exception.cpp
diff --git
a/src/xbt/exception.cpp
b/src/xbt/exception.cpp
index
82b64ee
..
6d9272f
100644
(file)
--- a/
src/xbt/exception.cpp
+++ b/
src/xbt/exception.cpp
@@
-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
}
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!");
}
}
}
}
@@
-145,7
+146,7
@@
static void handler()
std::abort();
}
std::abort();
}
- catch (
simgrid::ForcefulKillException const& e
) {
+ catch (
const simgrid::ForcefulKillException&
) {
XBT_ERROR("Received a ForcefulKillException at the top-level exception handler. Maybe a Java->C++ call that is not "
"protected "
"in a try/catch?");
XBT_ERROR("Received a ForcefulKillException at the top-level exception handler. Maybe a Java->C++ call that is not "
"protected "
"in a try/catch?");