diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 249afa5018..a2d7202f40 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -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 ( ... )