Print error before terminating in AsyncTask (#841)
This commit is contained in:
parent
f99c72bd5b
commit
6bfbf97eea
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
#include <drogon/utils/optional.h>
|
#include <drogon/utils/optional.h>
|
||||||
#include <trantor/net/EventLoop.h>
|
#include <trantor/net/EventLoop.h>
|
||||||
|
#include <trantor/utils/Logger.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <coroutine>
|
#include <coroutine>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
@ -395,6 +396,7 @@ struct AsyncTask final
|
||||||
|
|
||||||
void unhandled_exception()
|
void unhandled_exception()
|
||||||
{
|
{
|
||||||
|
LOG_FATAL << "Exception escaping AsyncTask";
|
||||||
std::terminate();
|
std::terminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue