[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/ksirc
From:       David Faure <faure () kde ! org>
Date:       2004-03-22 19:08:58
Message-ID: 20040322190858.763D099C4 () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Turn assert (Assertion `tok.value == tag.name' failed.)
into a more useful debug output that tells what made it fail, and doesn't crash.

It just happen for me on
"~Md~[~bMd~b~b] [GlobalNotice] We have lost some major servers because of network \
troubles, sorry for the splits :-(\n"

but due to lack of -g I can't get hold of the HTML that was generated from it.

CCMAIL: asj@cban.com


  M +4 -1      kstextview.cpp   1.115


--- kdenetwork/ksirc/kstextview.cpp  #1.114:1.115
@@ -1471,5 +1471,8 @@ void TextParag::setRichText( const QStri
             Tag tag = tagStack.pop();
 
-            assert( tok.value == tag.name );
+            if( !( tok.value == tag.name ) ) {
+                kdDebug(5008) << "ASSERT failed! tok.value=" << \
tok.value.toQString() << " tag.name=" << tag.name.toQString() << endl; +              \
kdDebug(5008) << "while parsing " << richText << endl; +            }
 
             // ...foo</bleh>... -> finish off 'foo'


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic