Improve formatting of error messages

This commit is contained in:
Aurélien Gâteau 2014-08-01 09:56:40 +02:00
parent b111027d57
commit 90670f8b46
3 changed files with 18 additions and 21 deletions

View file

@ -270,9 +270,14 @@ Helper::handleLastError()
msgList.append( valMsg );
if ( !tbMsg.isEmpty() )
msgList.append( QString( "</code>Traceback:<code><br/>%1" ).arg( tbMsg ) );
{
msgList.append( "Traceback:" );
msgList.append( QString( "<pre>%1</pre>" ).arg( tbMsg ) );
cDebug() << "tbMsg" << tbMsg;
}
return QString( "<code>%1</code>" ).arg( msgList.join( "<br/>" ) );
// Return a string made of the msgList items, wrapped in <div> tags
return QString( "<div>%1</div>" ).arg( msgList.join( "</div><div>" ) );
}