Add exception type name when failing with an uncaught exception

This commit is contained in:
Maxime Coste 2015-03-25 13:34:25 +00:00
parent bc67a6547d
commit 16037744b7

View File

@ -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 (...)