From 140166a4a718b6a8898a954ff033206f93731e56 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:50:10 -0500 Subject: [PATCH] Updated nested exception what message --- src/cpptrace.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cpptrace.cpp b/src/cpptrace.cpp index 96ac7a3..fc39c72 100644 --- a/src/cpptrace.cpp +++ b/src/cpptrace.cpp @@ -493,10 +493,9 @@ namespace cpptrace { try { std::rethrow_exception(ptr); } catch(std::exception& e) { - // what_value = std::string("cpptrace::nested_exception: ") + e.what(); - what_value = e.what(); + what_value = std::string("Nested exception: ") + e.what(); } catch(...) { - what_value = ""; + what_value = "Nested exception holding instance of " + detail::exception_type_name(); } } return what_value.c_str();