mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Store std::exception::what() automatically before calling TRAP on unhandled exceptions
* Makes it easier to inspect the message in debuggers
This commit is contained in:
parent
89031d932c
commit
f7e00bcc8d
@ -746,7 +746,8 @@ struct final_callback : util::non_copyable {
|
|||||||
try {
|
try {
|
||||||
std::rethrow_exception(exception);
|
std::rethrow_exception(exception);
|
||||||
} catch (std::exception const& unhandled) {
|
} catch (std::exception const& unhandled) {
|
||||||
(void)unhandled;
|
char const* const what = unhandled.what();
|
||||||
|
(void)what;
|
||||||
CTI_DETAIL_TRAP();
|
CTI_DETAIL_TRAP();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
CTI_DETAIL_TRAP();
|
CTI_DETAIL_TRAP();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user