mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
Improve formatting of error messages
This commit is contained in:
parent
b111027d57
commit
90670f8b46
3 changed files with 18 additions and 21 deletions
|
@ -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>" ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue