]> git.saurik.com Git - wxWidgets.git/commitdiff
Include more information in assert in wxNumberFormatter.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2011 23:47:16 +0000 (23:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2011 23:47:16 +0000 (23:47 +0000)
Show more information in the assert failure message to try to understand why
is the unit test failing on the buildbot.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/numformatter.cpp

index 39f4f5743e011c1b68684e47dc6eefe445e40c10..5422984ec37775c56835c528f2d5509a7dbfd321 100644 (file)
@@ -172,7 +172,8 @@ void wxNumberFormatter::AddThousandsSeparators(wxString& s)
 void wxNumberFormatter::RemoveTrailingZeroes(wxString& s)
 {
     const size_t posDecSep = s.find(GetDecimalSeparator());
-    wxCHECK_RET( posDecSep != wxString::npos, "No decimal separator" );
+    wxCHECK_RET( posDecSep != wxString::npos,
+                 wxString::Format("No decimal separator in \"%s\"", s) );
     wxCHECK_RET( posDecSep, "Can't start with decimal separator" );
 
     // Find the last character to keep.