Split messages with \n
This way the front-end won't receive a big string but every error in a different line, so it improves the readability of the errors. REVIEW: 108124
This commit is contained in:
parent
ae25b971e3
commit
cff944bfb8
@ -105,7 +105,7 @@ bool DeclarativeAppletScript::init()
|
|||||||
if (!m_declarativeWidget->engine() || !m_declarativeWidget->engine()->rootContext() || !m_declarativeWidget->engine()->rootContext()->isValid() || m_declarativeWidget->mainComponent()->isError()) {
|
if (!m_declarativeWidget->engine() || !m_declarativeWidget->engine()->rootContext() || !m_declarativeWidget->engine()->rootContext()->isValid() || m_declarativeWidget->mainComponent()->isError()) {
|
||||||
QString reason;
|
QString reason;
|
||||||
foreach (QDeclarativeError error, m_declarativeWidget->mainComponent()->errors()) {
|
foreach (QDeclarativeError error, m_declarativeWidget->mainComponent()->errors()) {
|
||||||
reason += error.toString();
|
reason += error.toString()+'\n';
|
||||||
}
|
}
|
||||||
setFailedToLaunch(true, reason);
|
setFailedToLaunch(true, reason);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user