]> git.saurik.com Git - wxWidgets.git/commitdiff
don't give error message if we failed to get the stack, this doesn't mean anything...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Aug 2005 23:57:00 +0000 (23:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Aug 2005 23:57:00 +0000 (23:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/stackwalk.cpp

index 0566e96ab82159e5fb0ac57d2d54ad3b1c48dbc3..8bdf7d4021931971216fa80aa6796d9fe01014d8 100644 (file)
@@ -218,7 +218,10 @@ void wxStackWalker::WalkFrom(const CONTEXT *pCtx, size_t skip)
 {
     if ( !wxDbgHelpDLL::Init() )
     {
-        wxLogError(_("Failed to get stack backtrace:\n%s"),
+        // don't log a user-visible error message here because the stack trace
+        // is only needed for debugging/diagnostics anyhow and we shouldn't
+        // confuse the user by complaining that we couldn't generate it
+        wxLogDebug(_T("Failed to get stack backtrace: %s"),
                    wxDbgHelpDLL::GetErrorMessage().c_str());
         return;
     }