mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Put back BEAST_CATCH_UNHANDLED_EXCEPTIONS macro, but disabled by default
This commit is contained in:
@@ -314,6 +314,7 @@ void ProtectedCall::call (Call& c)
|
||||
if (handler == nullptr)
|
||||
handler = &defaultHandler;
|
||||
|
||||
#if BEAST_CATCH_UNHANDLED_EXCEPTIONS
|
||||
try
|
||||
{
|
||||
c ();
|
||||
@@ -324,6 +325,11 @@ void ProtectedCall::call (Call& c)
|
||||
|
||||
handler->onException (e);
|
||||
}
|
||||
|
||||
#else
|
||||
c ();
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user