Fix build with wxNO_RTTI, see #17781

This commit is contained in:
Paul Cornett
2017-05-28 23:14:26 -07:00
parent 5feb43c8a2
commit 3fe9d59651

View File

@@ -684,8 +684,12 @@ void wxAppConsoleBase::OnUnhandledException()
#if wxUSE_STL
catch ( std::exception& e )
{
#ifdef wxNO_RTTI
what.Printf("std::exception, what() = \"%s\"", e.what());
#else
what.Printf("std::exception of type \"%s\", what() = \"%s\"",
typeid(e).name(), e.what());
#endif
}
#endif // wxUSE_STL
catch ( ... )