From 16037744b74a429b54bd606b61f9581ee5c973a0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 25 Mar 2015 13:34:25 +0000 Subject: [PATCH] Add exception type name when failing with an uncaught exception --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 9c6829d6..2a0d0b58 100644 --- a/src/main.cc +++ b/src/main.cc @@ -623,12 +623,12 @@ int main(int argc, char* argv[]) } catch (Kakoune::exception& error) { - on_assert_failed(("uncaught exception:\n"_str + error.what()).c_str()); + on_assert_failed(("uncaught exception ("_str + typeid(error).name() + "):\n" + error.what()).c_str()); return -1; } catch (std::exception& error) { - on_assert_failed(("uncaught exception:\n"_str + error.what()).c_str()); + on_assert_failed(("uncaught exception ("_str + typeid(error).name() + "):\n" + error.what()).c_str()); return -1; } catch (...)