From: Vadim Zeitlin Date: Wed, 19 Jan 2011 23:47:16 +0000 (+0000) Subject: Include more information in assert in wxNumberFormatter. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a7d696f13d3e38b5502999f0c19d482157881ae8 Include more information in assert in wxNumberFormatter. 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 --- diff --git a/src/common/numformatter.cpp b/src/common/numformatter.cpp index 39f4f5743e..5422984ec3 100644 --- a/src/common/numformatter.cpp +++ b/src/common/numformatter.cpp @@ -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.