Commit f49b6a4f authored by Kenton Varda's avatar Kenton Varda

Don't check uncaught_exception at throw time because…

Don't check uncaught_exception at throw time because catchExceptionsIfUnwinding() is the correct way to handle it.
parent 8bbe6b25
......@@ -306,12 +306,7 @@ public:
#if KJ_NO_EXCEPTIONS
logException(mv(exception));
#else
if (std::uncaught_exception()) {
// Throwing is probably dangerous. Log instead.
logException(mv(exception));
} else {
throw ExceptionImpl(mv(exception));
}
throw ExceptionImpl(mv(exception));
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment